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

From: Date: Fri, 26 Aug 2005 11:31:34 +0000
Subject: #34267 [Opn->Fbk]: date() function produces wrong output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84020@lists.php.net to get a copy of this message
ID: 34267 Updated by: derick@php.net Reported By: alexm at emarket2 dot com -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: Windows XP PHP Version: 5.1.0RC1 New Comment: Did you use "error_reporting(E_ALL);" ? Previous Comments: ------------------------------------------------------------------------ [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 (#84020) next »