Date formats are set in the language files. You can find them right at the top of these files:
/admin/language/YOURLANGUAGE/YOURLANGUAGE.php
/catalog/language/YOURLANGUAGE/YOURLANGUAGE.php
For example:
/catalog/language/fr-fr/fr-fr.php
The date formats used are part of the PHP "date()" function, so you can read more about what the characters in that format mean here:
https://www.php.net/manual/en/function.date.php
/admin/language/YOURLANGUAGE/YOURLANGUAGE.php
/catalog/language/YOURLANGUAGE/YOURLANGUAGE.php
For example:
/catalog/language/fr-fr/fr-fr.php
The date formats used are part of the PHP "date()" function, so you can read more about what the characters in that format mean here:
https://www.php.net/manual/en/function.date.php
If you mean backend (admin), then the date format is hard-coded in templates. I wouldn't recommend changing it for you might get issues.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
I agree with thekrotek, any dates you enter in the admin panel (like the Special date format that you enter in the product data) are hard-coded that way, so you shouldn't change them. This format is pretty standard internationally:
YYYY-MM-DD
That date format won't show to your customer, so just make sure you follow it when entering Specials and you should be fine.
YYYY-MM-DD
That date format won't show to your customer, so just make sure you follow it when entering Specials and you should be fine.
I don't think those dates are a part of a standard OpenCart installation, so it may be something in your theme. You should look at the date format used in the front-end language file:
/catalog/language/YOURLANGUAGE/YOURLANGUAGE.php
If changing something in there doesn't fix it, it means it's hard-coded in your theme files. You should contact your theme developer for support.
/catalog/language/YOURLANGUAGE/YOURLANGUAGE.php
If changing something in there doesn't fix it, it means it's hard-coded in your theme files. You should contact your theme developer for support.
Because of this in tpl files...
Maybe in the future will be like this
Code: Select all
data-date-format="YYYY-MM-DD HH:mm"
Code: Select all
data-date-format="<?php echo $my_lang_date_format; ?>"
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Hi Maxidays
Was your issue resolved?
Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...
Well well well, what a surprise, back from OZ again ?!
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Hey mate, I had to take care of few obstacles (health issues)... Nice to see you still alive and kicking...
Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...
Well, I probably still try, to fight reality, but it's getting harder, that's for sure.Nice to see you still alive and kicking..
Still, once in a while, I find some peanuts, to enable my Baby, to further stay
alive and well, and that's a very good reason, to stay, despite of, what's reality.
The only good one, at least for me, as I can think of momentarely ....
But it's Business, plain Business, so, what the heck ?!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: Bing [Bot] and 392 guests