ID: 35143 Updated by: [EMAIL PROTECTED] Reported By: tomas_matousek at hotmail dot com -Status: Assigned +Status: Closed Bug Type: Date/time related Operating System: WinXP PHP Version: 5.1.0RC4 Assigned To: derick New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Fixed for 5.1.0 and 6.0.0 Previous Comments: ------------------------------------------------------------------------ [2005-11-07 21:38:59] [EMAIL PROTECTED] Assigned to the master of timezones. ------------------------------------------------------------------------ [2005-11-07 20:38:19] tomas_matousek at hotmail dot com 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 this bug report at http://bugs.php.net/?id=35143&edit=1