#33920 [Opn->Bgs]: Wrong shows hour
| From: | nlopess@php.net | Date: | Fri, 29 Jul 2005 18:00:44 +0000 |
| Subject: | #33920 [Opn->Bgs]: Wrong shows hour | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82692@lists.php.net to get a copy of this message | ||
ID: 33920
Updated by: nlopess@php.net
Reported By: php-work at yandex dot ru
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Windows XP SP2
PHP Version: 5CVS-2005-07-29 (dev)
New Comment:
Probably your TZ environment var is set to GMT.
So, you need to use the date_default_timezone_set() function to overide
it.
Previous Comments:
------------------------------------------------------------------------
[2005-07-29 19:22:54] php-work at yandex dot ru
Tried, no effect.
------------------------------------------------------------------------
[2005-07-29 18:14:20] sniper@php.net
Set the timezone in php.ini using date.timezone setting.
------------------------------------------------------------------------
[2005-07-29 16:37:50] php-work at yandex dot ru
Description:
------------
Code:
<?php
echo date("r");
?>
print Fri, 29 Jul 2005 14:22:56 +0000, but stated time zone:
(GMT+03:00) Moscow.
I tried to use other time zone, setlocale, but result is not changed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33920&edit=1