From: suren at hbi-software dot com
Operating system: windows 2003 server
PHP version: 5.2.4RC1
PHP Bug Type: Date/time related
Bug description: Displaying UTC date time
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 bug report at http://bugs.php.net/?id=42245&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42245&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42245&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42245&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42245&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42245&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42245&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42245&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42245&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42245&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42245&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42245&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42245&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42245&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42245&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42245&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42245&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42245&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42245&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42245&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42245&r=mysqlcfg