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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 13:01:28 2025 UTC