pcandsat Posted November 26, 2013 Share Posted November 26, 2013 Hello, i have problem with date in order. The date is displayed double. In order and in email confirmation. Somebody solved this? Sorry for my bad english. Libor Link to comment Share on other sites More sharing options...
pcandsat Posted November 29, 2013 Author Share Posted November 29, 2013 Hello, i have problem with date in order. The date is displayed double. In order and in email confirmation. Somebody solved this? Sorry for my bad english. Libor any idea? Link to comment Share on other sites More sharing options...
ibndawood Posted November 29, 2013 Share Posted November 29, 2013 Hi, I suspected something must have changed the date format. Please check your date format in Localization -> Languages. Link to comment Share on other sites More sharing options...
vekia Posted November 30, 2013 Share Posted November 30, 2013 hello your store use some overrides? Link to comment Share on other sites More sharing options...
pcandsat Posted December 1, 2013 Author Share Posted December 1, 2013 Hello, many thanks for answer. I think that in the settings of localization is everything ok. I am using a template from promokit.eu. But in default template but in the default error template is also reflected LT Link to comment Share on other sites More sharing options...
ibndawood Posted December 2, 2013 Share Posted December 2, 2013 (edited) Well that is the problem..Your date format is wrong. You have used dd-mm-YYYY H:i:s which will give 0101-1212-201320132013 This is because in PHP d (single lower case d) is used to denote dates from 01-31 m (single lower case m) is used to months 01-12 Y is four-digit year (single upper case Y and not four Ys) H (upper case H) is 24-hour format with leading zeroes You can read about the date formats here : http://php.net/manual/en/function.date.php So the correct format is d-m-Y g:i:a for 01-12-2013 1:30:00 PM Edited December 2, 2013 by ibndawood (see edit history) Link to comment Share on other sites More sharing options...
pcandsat Posted December 2, 2013 Author Share Posted December 2, 2013 Well that is the problem..Your date format is wrong. You have used dd-mm-YYYY H:i:s which will give 0101-1212-201320132013 This is because in PHP d (single lower case d) is used to denote dates from 01-31 m (single lower case m) is used to months 01-12 Y is four-digit year (single upper case Y and not four Ys) H (upper case H) is 24-hour format with leading zeroes You can read about the date formats here : http://php.net/manual/en/function.date.php So the correct format is d-m-Y g:i:a for 01-12-2013 1:30:00 PM Many thanks ibndawood Now is date OK.. My mistake. many many thanks for help. LT Link to comment Share on other sites More sharing options...
vekia Posted December 2, 2013 Share Posted December 2, 2013 thread marked as [solved] Link to comment Share on other sites More sharing options...
ibndawood Posted December 2, 2013 Share Posted December 2, 2013 Many thanks ibndawood Now is date OK.. My mistake. many many thanks for help. LT Most welcome Glad to be able to help Link to comment Share on other sites More sharing options...
Recommended Posts