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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: steve at szabos dot com
New email:
PHP Version: OS:

 

 [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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC