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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 08:01:33 2024 UTC