#42245 [Opn->Bgs]: Displaying UTC date time
| From: | derick@php.net | Date: | Wed, 08 Aug 2007 11:32:09 +0000 |
| Subject: | #42245 [Opn->Bgs]: Displaying UTC date time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115878@lists.php.net to get a copy of this message | ||
ID: 42245
Updated by: derick@php.net
Reported By: suren at hbi-software dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: windows 2003 server
PHP Version: 5.2.4RC1
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.
http://no2.php.net/manual/en/ref.datetime.php#ini.date.timezone
Previous Comments:
------------------------------------------------------------------------
[2007-08-08 10:51:34] suren at hbi-software dot com
Description:
------------
Hi,
I have downloaded php-5.2.3-Win32.zip and installed on windows server
2003 on apache 2.2 server. Every thing looks fine and tested a php file
with script "Today is <?php echo date("D M j G:i:s T Y"); ?>" in it, but
it always showing "Today is Wed Aug 8 10:37:29 UTC 2007" instead local
time. I live in Timezone of +5.30Hrs of GMT. Even i set timezone as
date.timezone ="" in the php.ii file, the result is same. The same is
shown with phpinfo.php script. Please help.
Thanks
Suren
Reproduce code:
---------------
Today is <?php echo date("D M j G:i:s T Y"); ?>"
Expected result:
----------------
Today is Wed Aug 8 04:18:58 IST/(GMT+5.30) 2007
Actual result:
--------------
Today is Wed Aug 8 10:37:29 UTC 2007
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42245&edit=1