|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-07 21:38 UTC] sniper@php.net
[2005-11-20 21:14 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ I assume gettimeofday() should return "minuteswest" and "dsttime" according to the current time zone set by date_default_timezone_set, right? It doesn't work. It returns the system time zone instead. Reproduce code: --------------- date_default_timezone_set("UTC"); var_dump(date_default_timezone_get()); var_dump(gettimeofday()); Expected result: ---------------- string(3) "UTC" array(4) { ["sec"]=> int(1131392140) ["usec"]=> int(31336) ["minuteswest"]=> int(0) ["dsttime"]=> int(0) } Actual result: -------------- string(3) "UTC" array(4) { ["sec"]=> int(1131392140) ["usec"]=> int(31336) ["minuteswest"]=> int(-60) ["dsttime"]=> int(1) }