|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-04-04 17:38 UTC] jose dot zap at gmail dot com
Description: ------------ When using DateTimeZone::listIdentifiers() the offset for America/Caracas is shown as GMT -5:30, when it should be GMT -4:30 This can be validated here http://www.timeanddate.com/library/abbreviations/timezones/sa/vet.html PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 08 16:00:02 2026 UTC |
I'm rather confused by your bug: DateTimeZone::listIdentifiers() doesn't list offsets, and the code that does appears to be correct on any recent PHP version: <?php $tz = new DateTimeZone("America/Caracas"); var_dump($tz->getOffset(new DateTime()) / 3600); ?> outputs float(-4.5), which lines up with your bug. What version of PHP are you running, what does phpinfo() list the Olson Timezone Database Version as, and what do you get when you run the above code?