|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-30 01:38 UTC] omid at oztell dot com
The date() function is returning the value as GMT time. i.e this function and gmdate() produce the same result as of php 4.1.1. This was o.k in previous versions PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
I cannot replicate this. I think your timezone settings may be incorrect [swm@l php-4.1.1]$ ./php <? echo date('H'); ?> 17[swm@l php-4.1.1]# date Wed Jan 30 17:51:27 EST 2002 [swm@l php-4.1.1]$ TZ=GMT ./php <? echo date('H'); ?> 06[swm@l php-4.1.1]$ gavinI get the same result for the following: <? echo date("r"); echo gmdate("r"); ?>