#38419 [Opn->Bgs]: date function error
| From: | derick@php.net | Date: | Mon, 14 Aug 2006 07:59:46 +0000 |
| Subject: | #38419 [Opn->Bgs]: date function error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100749@lists.php.net to get a copy of this message | ||
ID: 38419
Updated by: derick@php.net
Reported By: reggiemb at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: WindowsXP
PHP Version: 5.1.4
New Comment:
The setting is:
America/Chicago
If that is not correct (and I doubt it is), then fix it in php.ini
according to the list in the manual
(http://php/manual/en/timezones.america.php).
Previous Comments:
------------------------------------------------------------------------
[2006-08-14 07:50:43] reggiemb at hotmail dot com
Extracted from phpinfo() output:
date/time support enabled
Timezone Database Version 2006.1
Timezone Database internal
Default timezone America/Chicago
Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value
------------------------------------------------------------------------
[2006-08-14 05:22:53] derick@php.net
Tony asked for the date.timezone *php* setting. Check the phpinfo()
output.
------------------------------------------------------------------------
[2006-08-14 02:07:05] reggiemb at hotmail dot com
(GMT -6:00) Central America Standard Time
------------------------------------------------------------------------
[2006-08-11 08:19:51] tony2001@php.net
And your date.timezone is .. ?
------------------------------------------------------------------------
[2006-08-11 03:21:58] reggiemb at hotmail dot com
Description:
------------
It suppose to be returning the current system datetime, but always
return 1 hour ahead of the system datetime..
System running on Apache/2.0.58 (Win32)...
Reproduce code:
---------------
date('l jS \of F Y g:ia');
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38419&edit=1