php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7699 date and gmdate not working
Submitted: 2000-11-08 14:40 UTC Modified: 2001-01-18 09:56 UTC
From: steve at szabos dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.3pl1 OS: Windows 2000 Advanced Server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 - 16 = ?
Subscribe to this entry?

 
 [2000-11-08 14:40 UTC] steve at szabos dot com
The date and gmdate functions are not reporting the correct timezone on my system.  I am using the ISAPI DLL on W2K-AS.

Using "Z" format with "date" function results in 18000 on my system.  This is "500" in hours.  It should by "-0500" since my computer is in the Eastern time zone.

Also, contrary to the note on the documentation, "gmdate" is returning a non-zero value when given "Z". The doc says that gmdate should always return zero for the timezone, which makes sense.

Any assistance is appreciated.  I hardcoded my timezone for now (yuk).

Steve
steve@szabos.com

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-18 09:56 UTC] sniper@php.net
This should be fixed in CVS now.
Fix will be included in 4.0.5 when it is released.

--Jani
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Apr 17 22:01:30 2021 UTC