|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-18 17:50 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 18:00:01 2025 UTC |
Description: ------------ In ext/date/lib/fallbackmap.h you have: { "krat", 0, 7, "Asia/Krasnoyarsk" }, { "krast", 1, 8, "Asia/Krasnoyarsk" }, { "jst", 0, 9, "Asia/Tokyo" }, but lots east Asia region do not use daylight saving time. And in the test server if I use /usr/share/zoneinfo/Etc/GMT-8 as /etc/localtime, I'll get tm_isdat == 0 after a simple localtime_r call, which then resulting PHP think the timezone is UTC. (I removed date.timezone entry in php.ini since i want PHP using OS's timezone setting.) Reproduce code: --------------- Remove date.timezone entry in php.ini and use /usr/share/zoneinfo/Etc/GMT-8 as /etc/localtime, then run date_default_timezone_get() Expected result: ---------------- Should return some timezone rest in GMT-8 region. (such as HongKong or Asia/Vientiane) Actual result: -------------- Returns UTC