Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Set the Time Zone
- if ( ! defined(STORE_TIME_ZONE)) define('STORE_TIME_ZONE', 'America/New_York');
- date_default_timezone_set(STORE_TIME_ZONE);
- $timezone = new DateTimeZone(STORE_TIME_ZONE);
- $dateTime = new DateTime("now", $timezone);
- $timeOffset = $timezone->getOffset($dateTime);
- if ($timeOffset != 0) {
- $hours = floor($timeOffset / 3600);
- $mins = abs($timeOffset) - abs($hours * 3600);
- define('TEMP_TZ', '-3\:00');
- tep_db_query("SET SESSION time_zone = '" . TEMP_TZ . "'");
- unset($hours, $mins);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement