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
on Adding new Item (When no date chosen yet), date printed in HTML source in Jalali format , so the datetime picker try to convert it again to Jalali and result will be so wrong date.
the only thing that working right, is on submitting form ( when i choose correct date by picker) and save the form, before saving, date converted to Georgian, but again when form loaded, it has printed Jalali date in HTML and again like new state
summary:
everything is fine when submitting form
but when form loaded ( adding new item, or editing item directly from database) it shows jalali date in HTML which is wrong approach
solve proposal:
Date have to be printed in Georgian in Date input HTML and have to be converted to jalali in run time by java-script (which just working fine only submit event, not load)
my question:
how to stop k2 to not convert date in jalali in HTML Source?
The text was updated successfully, but these errors were encountered:
it seems JHTML:: convert date to admin user logged-in language and thats cause the problem,
i like to hear the main reason of that by author, please bright me up
i compared k2 item to Joomla Content Article source code, and understood that content article wont convert date, just simply using JFactory::getDate()->toSql();
on Adding new Item (When no date chosen yet), date printed in HTML source in Jalali format , so the datetime picker try to convert it again to Jalali and result will be so wrong date.
the only thing that working right, is on submitting form ( when i choose correct date by picker) and save the form, before saving, date converted to Georgian, but again when form loaded, it has printed Jalali date in HTML and again like new state
summary:
everything is fine when submitting form
but when form loaded ( adding new item, or editing item directly from database) it shows jalali date in HTML which is wrong approach
solve proposal:
Date have to be printed in Georgian in Date input HTML and have to be converted to jalali in run time by java-script (which just working fine only submit event, not load)
my question:
how to stop k2 to not convert date in jalali in HTML Source?
The text was updated successfully, but these errors were encountered: