From 43eaf698f23464518e8d94cd45f39e2131c93162 Mon Sep 17 00:00:00 2001 From: pzinovkin Date: Wed, 1 Apr 2009 09:01:06 +0000 Subject: [PATCH] time offset bugfix for daylight saving time git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@68 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Format.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/Format.class.php b/classes/Format.class.php index 54b8ec4..aa3f12a 100644 --- a/classes/Format.class.php +++ b/classes/Format.class.php @@ -176,5 +176,8 @@ class Format } } -Format::setTimezoneOffset(date('Z')); +/** + * Оффсет с учетом летнего/зимнего времени + */ +Format::setTimezoneOffset(date('Z') - ((date('I') ? 60*60 : 0 ))); ?> \ No newline at end of file