|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-11 22:58 UTC] derick@php.net
[2009-06-12 08:02 UTC] lieven_vaneeckhaute at symantec dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 20:00:01 2025 UTC |
Description: ------------ On Windows I'm running in timezone Beijing,... which is +08:00. If echo date("c") or date("r") it displays as Thu, 11 Jun 2009 12:27:54 +0000 rather than 20:27:54 +0800. To us for reporting reasons it is very useful to know what time it was on the local system. We run php as CLI. Reproduce code: --------------- <?php echo date("r"); ?> Expected result: ---------------- Display 20:27:54 +0800 rather than 12:27:54 +0000. Actual result: -------------- Thu, 11 Jun 2009 12:27:54 +0000