ID: 34267
Updated by: [EMAIL PROTECTED]
Reported By: alexm at emarket2 dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Windows XP
PHP Version: 5.1.0RC1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-08-26 13:53:59] alexm at emarket2 dot com
Yes, I have just run it again with error_reporting(E_ALL).
The same result.
------------------------------------------------------------------------
[2005-08-26 13:31:33] [EMAIL PROTECTED]
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