You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you know from php 5.3 and upper,we can use the "IntlDateFormatter" function.
how we can change the whole system calendar by using this following sample code?
$fmt = new IntlDateFormatter("fa_IR@calendar=persian", IntlDateFormatter::FULL,
IntlDateFormatter::FULL, 'Asia/Tehran', IntlDateFormatter::TRADITIONAL);
The text was updated successfully, but these errors were encountered:
Good idea.
I actually had similar considerations when writing the importer, as I wanted it to support importing both European and US dates. See 85ec4b8#diff-a53ca3901ccb7247b6f0a27d5adad491R11
Then only the methods presenting the strings would have to be amended using IntlDateFormatter for presentation. Under the hood we should stick to the format dates are stored in in MySQL.
As you know from php 5.3 and upper,we can use the "IntlDateFormatter" function.
how we can change the whole system calendar by using this following sample code?
$fmt = new IntlDateFormatter("fa_IR@calendar=persian", IntlDateFormatter::FULL,
IntlDateFormatter::FULL, 'Asia/Tehran', IntlDateFormatter::TRADITIONAL);
The text was updated successfully, but these errors were encountered: