ID:               48530
 User updated by:  lieven_vaneeckhaute at symantec dot com
 Reported By:      lieven_vaneeckhaute at symantec dot com
 Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Windows XP
 PHP Version:      5.2.9
 New Comment:

Most other time zones (all of them on Linux) are recognized but Beijing
isn't on a Windows.
This makes our customers in this time zone unhappy.
PHP runs on their machines. We want to have the local time, not GMT or
some other incorrect timezone.

Setting a default time zone that is recognized(not Beijing) doesn't
really solve our problem.


Previous Comments:
------------------------------------------------------------------------

[2009-06-11 22:58:13] der...@php.net

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

------------------------------------------------------------------------

[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

Reply via email to