Edit the storefront file /includes/extra_configures/set_time_zone.php to add your timezone:
Code:
<?php
/**
* @package initSystem
* @copyright Copyright 2003-2018 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Drbyte Tue Sep 11 15:54:43 2018 -0400 Modified in v1.5.6 $
*/
/*
* Set time zone
*/
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = ''; // eg: 'Europe/Oslo'
/**
* MAKE NO CHANGES BELOW THIS LINE
*
* The following will take the timezone you specified above and apply it in your store.
* If you didn't specify one, it will try to use the setting from your server's PHP configuration
*/
if ($TZ == '') {
$TZ = date_default_timezone_get();
}
if ($TZ != '') {
putenv('TZ=' . $TZ);
@date_default_timezone_set($TZ);
}
If, for instance, you want the time to reflect Georgia, you'd add the highlighted string:
Code:
<?php
/**
* @package initSystem
* @copyright Copyright 2003-2018 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Drbyte Tue Sep 11 15:54:43 2018 -0400 Modified in v1.5.6 $
*/
/*
* Set time zone
*/
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = 'America/New_York'; // eg: 'Europe/Oslo'
/**
* MAKE NO CHANGES BELOW THIS LINE
*
* The following will take the timezone you specified above and apply it in your store.
* If you didn't specify one, it will try to use the setting from your server's PHP configuration
*/
if ($TZ == '') {
$TZ = date_default_timezone_get();
}
if ($TZ != '') {
putenv('TZ=' . $TZ);
@date_default_timezone_set($TZ);
}
That link in the comments (https://www.php.net/manual/en/timezones.php) identifies the other timezone constants if Georgia isn't what you want.
Bookmarks