#38625 [Bgs]: Default timezone not working
| From: | tony2001@php.net | Date: | Mon, 28 Aug 2006 11:39:59 +0000 |
| Subject: | #38625 [Bgs]: Default timezone not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101433@lists.php.net to get a copy of this message | ||
ID: 38625
Updated by: tony2001@php.net
Reported By: ashokmca dot g at gmail dot com
Status: Bogus
Bug Type: *General Issues
Operating System: Windows XP
PHP Version: 5.1.5
New Comment:
"GMT+5:30" is not a valid name for timezone.
Previous Comments:
------------------------------------------------------------------------
[2006-08-28 11:28:45] ashokmca dot g at gmail dot com
hi tony thanks for your reply
i already set this in php.ini file
date.timezone = "GMT+5:30"
------------------------------------------------------------------------
[2006-08-28 11:26:26] tony2001@php.net
You need to set date.timezone in your php.ini.
------------------------------------------------------------------------
[2006-08-28 11:22:23] ashokmca dot g at gmail dot com
Description:
------------
hello sir
i use date() and time() function to get current date and time
but it will give less than 5:30 as compare my current time.
the timezone For my pc is GMT+5:30
but in php UTC
i cant resolve this
please help me
Reproduce code:
---------------
<?
echo date("F j, Y, h:i:s a", time());
?>
Expected result:
----------------
August 28, 2006, 4:44:09 pm
Actual result:
--------------
August 28, 2006, 11:16:25 am
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38625&edit=1