Jump to content

Date format


Recommended Posts

Hello to all,

I've been playing around with this excellent shopping cart for a few weeks now and almost have it working exactly how I want it, apart from one small thing.

I'm based in the UK, and so are all my customers, so me being picky I really don't like it that whenever there is a date it's always showing as yyyy/mm/dd. In the UK it's dd/mm/yyyy and I'd really like to be able to change this.

So far I've seen it on the PDF's that are created, and in the 'My Account area', so if someone could point me in the right direction to change this then that would be great :)

Thanks for your time!

Link to comment
Share on other sites

I haven't found a way to do this using the back office, only by modifying code.

Insert at line 291 of classes/Tools.php:

else if ($language AND strtolower($language['iso_code']) == 'en')
   return ($tmpTab[2].'/'.$tmpTab[1].'/'.$tmpTab[0].($full ? $hour : ''));



You can use else if statements to define the format for multiple languages if required. Just change 'en' to the code of the iso code of the country.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...