#34292 [Opn->Bgs]: Timezone setting
| From: | sniper@php.net | Date: | Mon, 29 Aug 2005 14:30:59 +0000 |
| Subject: | #34292 [Opn->Bgs]: Timezone setting | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84133@lists.php.net to get a copy of this message | ||
ID: 34292
Updated by: sniper@php.net
Reported By: Admin at relax-info dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Windows XP SP2
PHP Version: 5.1.0RC1
New Comment:
When you have that set correctly, you'll get correct results. RTFM.
Previous Comments:
------------------------------------------------------------------------
[2005-08-29 14:41:53] Admin at relax-info dot com
In configuration a file(php.ini-dist|php.ini-recommended) there is no
configuration option - date.timezone therefore I established nothing.
It is impossible to take parameter timezone from a OS?
------------------------------------------------------------------------
[2005-08-29 13:23:42] sniper@php.net
Have you set date.timezone php.ini setting correctly?
(what is it?)
------------------------------------------------------------------------
[2005-08-29 00:55:24] Admin at relax-info dot com
Sorry,
Expected result:
----------------
Sun, 28 Aug 2005 01:44:05 +0300
------------------------------------------------------------------------
[2005-08-29 00:51:18] Admin at relax-info dot com
Description:
------------
PHP don't give proper weigh Timezone setting of my machine. Difference
to Greenwich time (GMT) in hours = 0
Reproduce code:
---------------
<?php
$timestamp = 1125267228;
print_r(date('r', $timestamp));
?>
Expected result:
----------------
Sun, 28 Aug 2005 01:44:05 +0200
Actual result:
--------------
Sun, 28 Aug 2005 22:44:05 +0000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34292&edit=1