#35143 [NEW]: gettimeofday()'s ignoring current time zone

From: Date: Mon, 07 Nov 2005 19:38:19 +0000
Subject: #35143 [NEW]: gettimeofday()'s ignoring current time zone
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87796@lists.php.net to get a copy of this message
From: tomas_matousek at hotmail dot com Operating system: WinXP PHP version: 5.1.0RC4 PHP Bug Type: Date/time related Bug description: gettimeofday()'s ignoring current time zone 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) } -- Edit bug report at http://bugs.php.net/?id=35143&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35143&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35143&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35143&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35143&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35143&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35143&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35143&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35143&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35143&r=support Expected behavior: http://bugs.php.net/fix.php?id=35143&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35143&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35143&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35143&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35143&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35143&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35143&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35143&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35143&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35143&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35143&r=mysqlcfg

« previous php.bugs (#87796) next »