php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34267 date() function produces wrong output
Submitted: 2005-08-26 12:33 UTC Modified: 2005-08-26 14:10 UTC
From: alexm at emarket2 dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.0RC1 OS: Windows XP
Private report: No CVE-ID: None
 [2005-08-26 12:33 UTC] alexm at emarket2 dot com
Description:
------------
I have installed PHP 5.1.0RC1 on Windows XP Professional
(before I was running PHP 5.0.4 ) and all my scripts
with code like <? print date("d/m/Y H:i:s"); ?> start showing time with 1 hour difference from my local machine time, for example - PHP script produces output like 26/08/2005 10:01:41 while my local machine time is 26/08/2005 11:01:41.

Online Documentation states that date() function
"Returns a string formatted according to the given format string using the given integer timestamp or the current local time if no timestamp is given."




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-26 13:31 UTC] derick@php.net
Did you use "error_reporting(E_ALL);" ?
 [2005-08-26 13:53 UTC] alexm at emarket2 dot com
Yes, I have just run it again with error_reporting(E_ALL).

The same result.
 [2005-08-26 14:10 UTC] derick@php.net
Sure, but it also gives you a warning which tells you to set a timezone. Please do that. (BTW< this is a duplicate bug, so I'm marking it as Bogus). See bug #34147.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 05:01:30 2024 UTC