php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38419 date function error
Submitted: 2006-08-11 03:21 UTC Modified: 2006-08-15 07:47 UTC
From: reggiemb at hotmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.4 OS: WindowsXP
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: reggiemb at hotmail dot com
New email:
PHP Version: OS:

 

 [2006-08-11 03:21 UTC] 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');




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-11 08:19 UTC] tony2001@php.net
And your date.timezone is .. ?
 [2006-08-14 02:07 UTC] reggiemb at hotmail dot com
(GMT -6:00) Central America Standard Time
 [2006-08-14 05:22 UTC] derick@php.net
Tony asked for the date.timezone *php* setting. Check the phpinfo() output.
 [2006-08-14 07:50 UTC] 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 07:59 UTC] derick@php.net
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).
 [2006-08-15 07:47 UTC] reggiemb at hotmail dot com
set the date.timezone in the php.ini, everything seems to be ok now, had the same problem in a linux box, see if it fix the same problem...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 23:01:26 2025 UTC