php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24691 gmdate() problem
Submitted: 2003-07-17 07:18 UTC Modified: 2003-07-17 07:22 UTC
From: da_boost at hotmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.3.1 OS: FreeBSD 5.1-RELEASE #0
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: da_boost at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-07-17 07:18 UTC] da_boost at hotmail dot com
Description:
------------
this code is supposed to return the same as date() because my timezone is GMT +1

Reproduce code:
---------------
echo "Date: ".date('d/m/Y H:i:s');
echo "<br />";
echo "Gmdate: ".gmdate('d/m/Y H:i:s', time() + 3600);

Expected result:
----------------
Date: 17/07/2003 14:03:06
Gmdate: 17/07/2003 14:03:06

Actual result:
--------------
Date: 17/07/2003 14:03:06
Gmdate: 17/07/2003 13:03:06

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-17 07:22 UTC] derick@php.net
Never heard of daylight savings time? Europe is GMT+2 at the moment.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Aug 28 13:00:03 2025 UTC