Zen Cart Logo
Forums / Bug Reports / Updating Customer Records vs date-format for UK

Updating Customer Records vs date-format for UK

Locked

Views: 1,340

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
6 Nov 2007, 3:36 AM
#1
nicksmm avatar

nicksmm

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Updating Customer Records vs date-format for UK

Hi,

I think I have found a bug. It has something to do with localisation of Date Format.

By default Zen Cart uses US based format (MM/DD/YY), but since I live in a country that uses UK based format (DD/MM/YY), I decided to change the format settings in the English.php file (both Admin & Catalogue).

I searched everything that I could change to reflect the above.

I have done so successfully without errors, however, in Admin, when I try to change or update any customer details (Customer > Customer), the page just reloads back into itself without and changes actually being applied.

I noticed that usually when customer details are updated the pages reload back into the list of customers which shows the changes.

I think I have found the problem. In English.php (Admin)

define('DATE_FORMAT', 'm/d/Y'); // this is used for date()

I changed this to:

define('DATE_FORMAT', 'd/m/Y'); // this is used for date()

That would not allow the customer details to be updated. If I change it back, it will.

Nick