babyewok Posted July 21, 2010 Share Posted July 21, 2010 How do I change the date fomat? Prestashop shows it as YEAR-MONTH-DAY but in the UK, we usually write is as DAY-MONTH-YEAR. Link to comment Share on other sites More sharing options...
rocky Posted July 22, 2010 Share Posted July 22, 2010 I did this on my site, since in Australia, we use dd/mm/yyyy. To do it, I changed lines 314-317 of classes/Tools.php from: if ($language AND strtolower($language['iso_code']) == 'fr') return ($tmpTab[2].'-'.$tmpTab[1].'-'.$tmpTab[0].($full ? $hour : '')); else return ($tmpTab[0].'-'.$tmpTab[1].'-'.$tmpTab[2].($full ? $hour : '')); to: /*if ($language AND strtolower($language['iso_code']) == 'fr') return ($tmpTab[2].'-'.$tmpTab[1].'-'.$tmpTab[0].($full ? $hour : '')); else return ($tmpTab[0].'-'.$tmpTab[1].'-'.$tmpTab[2].($full ? $hour : ''));*/ return ($tmpTab[2].'/'.$tmpTab[1].'/'.$tmpTab[0].($full ? $hour : '')); Link to comment Share on other sites More sharing options...
babyewok Posted July 22, 2010 Author Share Posted July 22, 2010 Thanks as always rocky! Link to comment Share on other sites More sharing options...
aquamarine Posted September 20, 2010 Share Posted September 20, 2010 and for USA would be since we use mm/dd/yyyy: return ($tmpTab[1].'-'.$tmpTab[2].'-'.$tmpTab[0].($full ? $hour : '')); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now