php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18434 Wrong date returned by gmdate() for `U`format
Submitted: 2002-07-19 08:03 UTC Modified: 2002-07-19 10:27 UTC
From: sitnikov at infonet dot ee Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.2.1 OS: Linux
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: sitnikov at infonet dot ee
New email:
PHP Version: OS:

 

 [2002-07-19 08:03 UTC] sitnikov at infonet dot ee
<?
        echo gmdate ('H:i:s U (O,Z)');
        echo "<br>\n";
        echo date ('H:i:s U (O,Z)');
?>

Output:

12:01:21 1027080081 (+0000,0)
15:01:21 1027080081 (+0300,10800)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-19 08:10 UTC] markonen@php.net
I see nothing wrong.
 [2002-07-19 08:15 UTC] sitnikov at infonet dot ee
Timestamp for GTM & +3 zone equal, but h:m:s format have different value
 [2002-07-19 08:18 UTC] markonen@php.net
Timestamp tells the number of seconds that have passed 
since January 1 1970 00:00:00 GMT. It obviously doesn't 
care about your time zone at all.
 [2002-07-19 10:27 UTC] rasmus@php.net
h:m:s format?  m != minutes
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 00:01:30 2024 UTC