Edit report at https://bugs.php.net/bug.php?id=60332&edit=1
ID: 60332 Comment by: jdmcadam at hotmail dot com 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.6 Block user comment: N Private report: N New Comment: The documentation on this isn't very clear, but the array that is returned has multiple timezones for most locations, organized by timezone abbreviation (ex CET, GMT, PST). In this case, Europe/Kiev shows up under 7 different timezones with offsets ranging from UTC+1 (no DST) to UTC+4. One of these is mean solar time which, for Kiev, is UTC +7324 seconds (based on distance from 0 deg of longitude). At 24hrs = 360°, 7324sec = 30.51667°E, which runs straight through Kiev. Previous Comments: ------------------------------------------------------------------------ [2011-11-19 01:59:51] nazar-pc at yandex dot ru PHP version corrected ------------------------------------------------------------------------ [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