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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC