|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-18 01:21 UTC] wez@php.net
[2004-07-29 05:31 UTC] wez@php.net
[2004-07-30 11:49 UTC] bela at up2you dot se
[2004-07-30 11:55 UTC] edink@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
Description: ------------ microtime() is not affected after changing the system time. The bug is verified on IIS and PHP4isapi.dll. The only way to get right system time is to restart the IIS server. The example shows when changing system time from 23:48:13 to 23:38:13. Reproduce code: --------------- <?php header("Content-type: text/plain"); list($usec, $sec) = explode(" ", microtime()); print date("Y-m-d H:i:s", $sec) . "\r\n"; print date("Y-m-d H:i:s", time()); ?> Expected result: ---------------- 2004-05-17 23:38:13 2004-05-17 23:38:13 Actual result: -------------- 2004-05-17 23:48:13 2004-05-17 23:38:13