php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13404 date('Z') seems to be wrong
Submitted: 2001-09-23 04:10 UTC Modified: 2001-09-23 04:45 UTC
From: rfinnie at kefta dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.0CVS-2001-09-23 OS: FreeBSD 4.3-RELEASE
Private report: No CVE-ID: None
 [2001-09-23 04:10 UTC] rfinnie at kefta dot com
date('Z') is returning -25200 on my system (mountain), even though though the rest of the system believes it is in the pacific time zone (rightfully so).  /bin/date returns "Sun Sep 23 01:09:17 PDT 2001".

configure line: './configure' '--prefix=/usr/local/apps/rf_php' '--with-config-file-path=/usr/local/apps/rf_php/lib' '--with-exec-dir=/usr/local/apps/rf_php/bin' '--with-apxs=/usr/local/apps/rf_apache/bin/apxs' '--with-imap' '--with-gd=/usr/local' '--with-mysql=/usr/local/apps/mysql' '--with-db' '--without-pear'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-23 04:39 UTC] rfinnie at kefta dot com
Umm, never mind.  Never let a programmer like me work in DST this late at night.
 [2001-09-23 04:41 UTC] mfischer@php.net
No bug -> bogus.

- Markus
 [2001-09-23 04:44 UTC] rasmus@php.net
That would be correct.  You can prove this to yourself by typing:  date +%z
at your prompt.  I bet you will see the same number.  ie. -0700
Remember we are on summer time.  See http://GreenwichMeanTime.com/info/timezone-summer.htm
to verify this for yourself.  PDT is GMT-7
 [2001-09-23 04:45 UTC] rasmus@php.net
uh, woops, shouldn't have spent the 2 minutes to find a URL that explains this.  Lots of people watching bugs these days... ;)
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC