Date format for posts - Posted (4349 Views)
Average Member
sadra
Posts: 354
starstarstar
Does anyone have any functionality they would like changing or adding for the next version?نوشته شده توسط HuwR


Hi HuwR
I would be very grateful if you could complete the Persian calendar for display on all pages and in profile birthday
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
Could you try to explain what is wrong/needs changing and I will try my best, but the calendar display is not my code so can't promise success.
Posted
Average Member
sadra
Posts: 354
starstarstar
Could you try to explain what is wrong/needs changing and I will try my best, but the calendar display is not my code so can't promise success.نوشته شده توسط HuwR


tanx...
1. The calendar section is no problem
2. Global view Dates on all pages of the site are gregorian date, not solar (Hijri Shamsi or Jalali or Persian) date.
for example: and more


I remember when you first tried this, you ran into a problem with the TimeAgo , and it was decided that we could choose optional the TimeAgo.
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
looks to me like it isn't loading one of the js files I will take a look
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
it wasn't loading one of the language files, have fixed that so some of those may be fixed.
Posted
Average Member
sadra
Posts: 354
starstarstar
looks to me like it isn't loading one of the js files I will take a lookنوشته شده توسط HuwR


The lack of a solar calendar display is not related to the JavaScript file.
but related to the correct .NET support for this calendar.

Currently, displaying All Dates on pages is only a Persian translation of gregorian date... Not Persian date, only persian translation of date.
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
the calendar is a javascript plugin it is nothing to do with .net

Currently, displaying All Dates on pages is only a Persian translation of gregorian date... Not Persian date, only persian translation of date.

You will have to explain with examples since I know nothing about Persian dates. AFIK, this date 13/05/2020 should be shown as ۲۴ اردیبهشت ۱۳۹۹ is that not happening?
Posted
Average Member
sadra
Posts: 354
starstarstar
the calendar is a javascript plugin it is nothing to do with .net

Currently, displaying All Dates on pages is only a Persian translation of gregorian date... Not Persian date, only persian translation of date.

Yes, all Displayed dates except JavaScript calendar


You will have to explain with examples since I know nothing about Persian dates. AFIK, this date 13/05/2020 should be shown as ۲۴ اردیبهشت ۱۳۹۹ is that not happening?نوشته شده توسط HuwR


That's true...is not happening...
examples:
Short format: Gregorian: 13/05/2020 should be shown as Persian: 1399/02/24
Persian short format only is yyyy/mm/dd

Long format: Gregorian: 13 May 2020 11:29 should be shown as Persian: 24 اردیبهشت 1399 11:29

End of .NET configuration

-----------------------------------------------------------------------

next point:
for TimeAgo remember:
https://www.reddick.co.uk/mvc/Topic/4846?pagenum=2&archived=0


Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
timeago should be turned off for Persian, is it still using it?
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
for TimeAgo remember

The problem isn't timeago unfortunately, on my local server the date is correct without timeago: 24 اردیبهشت 1399 11:29
but here it is showing as: 13 مي 2020 09:20
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
bingo! I have it displaying the correct date now I think, looks like the server was not loading the calendar for some reason, so have added code to force it to load. can you confirm it is now correct and I will retry enabling timeago as I believe that will work now
You Must enter a message