Zen Cart Logo
Forums / General Questions / Reviews date format?

Reviews date format?

Views: 672

Results 1 to 5 of 5
7 Jun 2014, 8:05 AM
#1
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Reviews date format?

Since upgrading to 151 I have set the date format to UK and all seems to work, but just noticed when reading the product reviews on the site, the date format is still in US.

Checked the language file and I don't seem to have missed anything.

Any ideas where I should be looking?

Thanks

7 Jun 2014, 12:51 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: Reviews date format?

Both the reviews and the product_reviews pages use the zen_date_short function to display the date. That function uses the DATE_FORMAT constant that's defined in the primary language file. If you have a template-override primary english-language file (/includes/languages/YOUR_TEMPLATE/english.php), make sure that you've changed the date format there; otherwise, make sure that you've changed /includes/languages/english.php.

If the constant is properly defined in the language file, the next place to look is at a template-override of the display of those two pages (tpl_reviews_default.php and tpl_product_reviews_default.php, respectively).

7 Jun 2014, 1:36 PM
#3
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Re: Reviews date format?

Thanks for that lat,
Will work through tomorrow

8 Jun 2014, 7:00 AM
#4
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

Re: Reviews date format?

Sorted.... looking deeper I missed an English.php

8 Jun 2014, 12:48 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: Reviews date format?

Excellent! Glad you got it sorted out.