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
 [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 10:01:32 2024 UTC