For UK based sites operating with servers abroad.

You will notice that your dates and times for the site are set by the server, these mods allow the server to provide local times.

*****************************************

In catalog/includes/application_top.php

Near 475 find:

// include the who's online functions
require(DIR_WS_FUNCTIONS . 'whos_online.php');
tep_update_whos_online();

add before:

// set local date
putenv("TZ=Europe/London");

***************************************

In catalog/admin/includes/application_top.php

Near 163 find:

// define our localization functions
require(DIR_WS_FUNCTIONS . 'localization.php');

add after:

// set local date
putenv("TZ=Europe/London");

***************************************

You will find that for the most part OSC uses the function now() when storing dates/times, unfortunatly even after setting the above now() will return the server time, to fix replace

all instances of now() with date("Y-m-d H:i:s"). This must not be enclosed in quotes,
ie if you have: array('date_added' => 'now()');
replace it with: array('date_added' => date("Y-m-d H:i:s"));


Thats It.

Attached Is Same

More...