#34267 [Fbk->Opn]: date() function produces wrong output

From: Date: Fri, 26 Aug 2005 11:54:01 +0000
Subject: #34267 [Fbk->Opn]: date() function produces wrong output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84022@lists.php.net to get a copy of this message
ID: 34267 User updated by: alexm at emarket2 dot com Reported By: alexm at emarket2 dot com -Status: Feedback +Status: Open Bug Type: Date/time related Operating System: Windows XP PHP Version: 5.1.0RC1 New Comment: Yes, I have just run it again with error_reporting(E_ALL). The same result. Previous Comments: ------------------------------------------------------------------------ [2005-08-26 13:31:33] derick@php.net Did you use "error_reporting(E_ALL);" ? ------------------------------------------------------------------------ [2005-08-26 12:33:48] 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." ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34267&edit=1

« previous php.bugs (#84022) next »