Community Forums

[solved] d/m/y to m/d/y

Template support & advice for OpenCart v1.x

[solved] d/m/y to m/d/y

Postby Vectra » Fri May 11, 2012 8:46 pm

v1.5.2 My reviews for products have dates that are d/m/y and I would like to change them to m/d/y (sales are to U.S.). I went to admin/language/english/english.php and changed at the top, but it did not help:

<?php
// Locale
$_['code'] = 'en';
$_['direction'] = 'ltr';
$_['date_format_short'] = 'm/d/Y';
$_['date_format_long'] = 'l dS F Y';
$_['time_format'] = 'h:i:s A';
$_['decimal_point'] = '.';
$_['thousand_point'] = ',';

How do I set the date format?
Thank you.
Last edited by Vectra on Sat May 12, 2012 7:19 pm, edited 1 time in total.
Vectra
 
Posts: 52
Joined: Fri May 11, 2012 7:32 pm

Re: d/m/y to m/d/y

Postby Johnathan » Sat May 12, 2012 2:37 am

There is an admin language file and a catalog language file. You'll need to change it in both:

/admin/language/english/english.php
/catalog/language/english/english.php
Image
ImageImageImageImageImageImageImageImageImage
User avatar
Johnathan
Global Moderator
 
Posts: 2861
Joined: Thu Dec 17, 2009 7:08 pm

Re: d/m/y to m/d/y

Postby Vectra » Sat May 12, 2012 7:19 pm

Thank you very much.
Vectra
 
Posts: 52
Joined: Fri May 11, 2012 7:32 pm


Return to Template Support

Who is online

Users browsing this forum: finerden and 10 guests

Hosted by Arvixe Web Hosting