php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42245 Displaying UTC date time
Submitted: 2007-08-08 10:51 UTC Modified: 2007-08-08 11:32 UTC
From: suren at hbi-software dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.4RC1 OS: windows 2003 server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: suren at hbi-software dot com
New email:
PHP Version: OS:

 

 [2007-08-08 10:51 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-08 11:32 UTC] derick@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.

http://no2.php.net/manual/en/ref.datetime.php#ini.date.timezone
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 18 21:00:03 2025 UTC