Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / SaleMaker and UK-style dates

SaleMaker and UK-style dates

Locked

Views: 2,154

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Jan 2008, 2:58 PM
#1
wolfieb avatar

wolfieb

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

SaleMaker and UK-style dates

Zen Cart, by default, uses the US system of dates - mm/dd/yyyy. In the UK we use a different format - dd/mm/yyyy. Within admin/includes/languages/english.php I can change the format for dates so that they display correctly within the admin panel, but if I do that it breaks the date function for SaleMaker.

For example, if I enter 27/01/2008 as a start date for a sale, when I click update that date becomes 30/11/2036. If I remove my edits from english.php, then the entered date of 01/27/2008 stays as 01/27/2008.

I'd rather have the dates in the correct format for the UK so any advice anyone can offer would be gratefully received.

27 Jan 2008, 3:07 PM
#2
wolfieb avatar

wolfieb

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Re: SaleMaker and UK-style dates

Update: Just discovered that with my edits in place, when in SaleMaker if I type the date in US format rather than use the date selection popups then it will put the date in UK format when saved. This is a bit anti-intuitive though so I'm still looking for a solution.