Zen Cart Logo
Forums / General Questions / Timezone error .... help plz

Timezone error .... help plz

Views: 1,861

Results 21 to 22 of 22
22 Jul 2015, 6:41 PM
#21
lat9 avatar

lat9

Administrator

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

Timezone error .... help plz

Right, but I've seen a bunch of reports (lately, for some unknown reason) of "funky", one-off issues that occurred due to a corrupted FTP upload.

22 Jul 2015, 10:13 PM
#22
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Timezone error .... help plz

amebb:

can anyone help please?

Although not officially recommended, and since you have apparently tried everything else.

Load the file /youradmin/includes/application_top.php into a text editor.

Locate the code that reads like:

if (version_compare(PHP_VERSION, 5.3, '>='))
{
  @date_default_timezone_set(date_default_timezone_get());
}

(This should be somewhere around line#60)

Replace the @date_default line with
@date_default_timezone_set('Europe/London');

Save the file. That should bypass the problem.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.