#48530 [Opn->Bgs]: Timezone GMT+08:00 Beijing,Chongqing,... not recognized by date("c")
| From: | derick@php.net | Date: | Thu, 11 Jun 2009 22:58:14 +0000 |
| Subject: | #48530 [Opn->Bgs]: Timezone GMT+08:00 Beijing,Chongqing,... not recognized by date("c") | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-138221@lists.php.net to get a copy of this message | ||
ID: 48530
Updated by: derick@php.net
Reported By: lieven_vaneeckhaute at symantec dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Windows XP
PHP Version: 5.2.9
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
YOu need to set the date.timezone setting:
http://nl3.php.net/manual/en/datetime.configuration.php#ini.date.timezone
Previous Comments:
------------------------------------------------------------------------
[2009-06-11 12:36:00] lieven_vaneeckhaute at symantec dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48530&edit=1