HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to convert Vanilla date to Jalali (Shamsi)
Keyvan
New
in Localization
Hi
does it possible to convert the Vanilla date to Jalali (Shamsi) date ?
Tagged:
0
Answers
I just learnt about Jalali calendar, now I know something new. As for how to display dates in such format, I'm afraid it can be a complicate task.
To achieve such result, some issues have to be solved:
In short, the objective would be converting every output date to Jalali before printing, and converting every Jalali input to Gregorian before passing it to Vanilla engine. Perhaps it may be easier than I think, but I'm afraid that some core functions would have to be modified.
My shop | About Me
perhaps javascript could be used
look at this script
https://github.com/farhadi/JalaliJSCalendar/blob/master/jalali.js#L72
you could parse the date on the page, which would require little detection, manipulation, conversion and replace.
Historical Jalali is complicated becuase it has no leap years.
grep is your friend.
@x00 That could also be a clean option. The OP would just have to make sure that the Users have JavaScript enabled.
My shop | About Me
well it is a compromise solution obviously not full proof.
I doubt that the users are unfamiliar with Gregorian.
grep is your friend.
good idea to use livequery given that comment are added dynamically.
grep is your friend.