|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-09-14 06:16 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jan 20 14:00:02 2026 UTC |
Description: ------------ The Europe/London offset seems to be wrong Reproduce code: --------------- $timezone = 7200; $dst = true foreach(timezone_abbreviations_list() as $tz => $reg) { foreach($reg as $tz) { if ($tz['offset'] === $timezone && $tz['dst'] === $dst) { return $tz['timezone_id']; } } } Expected result: ---------------- Europe/Paris timezone for example who is GMT+2 actually Actual result: -------------- Europe/London who is normally GMT+1 so it's the wrong timezone