Correcting language resource string and problem in date show. - Posted (559 Views)
Average Member
sadra
Posts: 354
starstarstar
Hi
Correcting language resource string and problem in date show.
After corecting "d MMM yyyy" to "dd MMM yyyy" , there was a problem displaying the date.
The correct date format sort in "language resource" should look like this: Long date = "yyyy MMM dd" and short date = "yyyy/MM/dd"
I should have paid attention to this before, which I unfortunately forgot.

You have already tried hard to show the correct Persian date. But my lack of attention to the format of date in "language resources" has caused these problem.
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
Thanks for the tip, will update the format at Snitz
Posted
Average Member
sadra
Posts: 354
starstarstar

Thanks for the tip, will update the format at Snitzنوشته شده توسط HuwR


Format in Snitz updated But date view (in Persian) not updated (here and in Snitz).
I think the Persian date display codes also need to be updated.

Old format: "d MMM yyyy"
Change to new: "yyyy MMM dd"
Attention:
1. "d" changed to "dd".
2. Replaced the day and year places. - This means that it must be corrected to show Persian format date.

Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
could you provide some screenshots of where it is wrong and what it should be otherwise I don't know which dates you are talking about
Posted
Average Member
sadra
Posts: 354
starstarstar
could you provide some screenshots of where it is wrong and what it should be otherwise I don't know which dates you are talking aboutنوشته شده توسط HuwR


Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
Ok thanks that's perfect, I'll take look at the weekend to see what's wrong
Posted
Forum Administrator
philsbbs
Posts: 2269
starstarstarstarstar
how did you get on question
Phil
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
This is not an issue with the forum code but how .Net formats persian dates, it would seem that persian does not recognise dd as a valid value for the dateformat
Posted
Average Member
sadra
Posts: 354
starstarstar
This is not an issue with the forum code but how .Net formats persian dates, it would seem that persian does not recognise dd as a valid value for the dateformatنوشته شده توسط HuwR


If you are sure ... ok.
Posted
Forum Administrator
HuwR
Posts: 4536
starstarstarstarstar
yes I'm sure, using dd works fine for all other languages but when using persian it fails to replace dd with the data, only works if you pass it d instead of dd, don't know why but not much I can do about it I'm afraid.
 
You Must enter a message