|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-21 13:09 UTC] derick@php.net
[2006-07-21 14:11 UTC] hyve dot mind at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
Description: ------------ the date function return error. My timezone is GMT +7 bangkok, hanoi, jakarta. When i view phpinfo(). the Default timezone is correct GMT+7, but in different city "Asia/Krasnoyarsk". When i use date("Y-m-d H:i:s"); it return 1 hour a head When i use date("O"); it return 8 but when i use gmdate("Y-m-d H:i:s"); it return correct time. 7hour before my time. I already use date_default_timezone_set and also set directly in php.ini but it only fix my timezone only and make other timezone crowd. Reproduce code: --------------- date("Y-m-d H:i:s"); Expected result: ---------------- return correct date time and add more timezone in phpinfo "Asia/bangkok, hanoi, jakarta"