Bug #60332 [Opn]: timezone_abbreviations_list() returns incorrect time offset

From: Date: Sat, 19 Nov 2011 01:59:52 +0000
Subject: Bug #60332 [Opn]: timezone_abbreviations_list() returns incorrect time offset
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165344@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60332&edit=1 ID: 60332 User updated by: nazar-pc at yandex dot ru Reported by: nazar-pc at yandex dot ru Summary: timezone_abbreviations_list() returns incorrect time offset Status: Open Type: Bug Package: Date/time related Operating System: Ubuntu Linux 11.10 -PHP Version: 5.3.8 +PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: PHP version corrected Previous Comments: ------------------------------------------------------------------------ [2011-11-19 01:57:45] nazar-pc at yandex dot ru Description: ------------ --- From manual page: http://www.php.net/datetimezone.listabbreviations --- Function timezone_abbreviations_list() returns incorrect values of time offset. For example, I live in Ukraine, Kiev (timezone Europe/Kiev) with time offset +2 hours, but function returns value, that equals to +2:02:04 (in seconds 7324), similar problems are for other timezones. Other cities in my country has the same offset +2 hours, but function returns other values from interval +2 till +3 hours, why? But functions, which works with time after changing of timezone return correct values, so, the problem is only in this function. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60332&edit=1

« previous php.bugs (#165344) next »