|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-30 07:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Feb 08 14:00:01 2026 UTC |
Description: ------------ time() Reproduce code: --------------- echo date("Y-m-d H:i:s",time()); Expected result: ---------------- Result to show correct time. Php.ini via PHPINFO() to show Date -> Default TimeZone correctly. Actual result: -------------- On computer with time set to any GMT+08:00 time zone the result shows UTC time. Viewing php.ini file via phpinfo() shows default time zone as UTC. Change computer time to ANY other time zone, restart apache result shows correct time and phpinfo() shows default time zone correctly. PHP Version ----------- 5.1.4 (Not displayed on select.)