#46302 [Opn->Bgs]: Timezone PHP Don't show the correct time
| From: | derick@php.net | Date: | Wed, 15 Oct 2008 15:04:52 +0000 |
| Subject: | #46302 [Opn->Bgs]: Timezone PHP Don't show the correct time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-129719@lists.php.net to get a copy of this message | ||
ID: 46302
Updated by: derick@php.net
Reported By: mfpjr at globo dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: RHEL AS 4.7
PHP Version: 5.2.6
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
You need to install the timezonedb extension
(http://pecl.php.net/timezonedb) to obtain the latest timezone rules.
Previous Comments:
------------------------------------------------------------------------
[2008-10-15 14:56:35] mfpjr at globo dot com
Description:
------------
Hi,
the php show incorrect time, i reproduce the error below:
[root@whisper ~]# php -version
PHP 5.2.6 (cli) (built: Oct 15 2008 11:14:30)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
[root@whisper ~]# date
Qua Out 15 11:48:24 BRT 2008
[root@whisper ~]# date -u
Qua Out 15 14:48:27 UTC 2008
[root@whisper ~]# echo $TZ
America/Sao_Paulo
[root@whisper ~]# php -r "print date('d/m/Y H:i:s e T');"
15/10/2008 12:48:41 America/Sao_Paulo BRST
Here is my date info in PHPINFO:
date/time support enabled
"Olson" Timezone Database Version 2008.2
Timezone Database internal
Default timezone America/Sao_Paulo
Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone America/Sao_Paulo America/Sao_Paulo
i try to change the date.timzone setting in php.ini but when I test
with the command above the Timezone Setting don't change.
Reproduce code:
---------------
php -r "print date('d/m/Y H:i:s e T');"
Expected result:
----------------
Same time from server, the php enable the Daylight Saving Time before
OS.
Actual result:
--------------
[root@whisper ~]# php -r "print date('d/m/Y H:i:s e T');"
15/10/2008 12:48:41 America/Sao_Paulo BRST
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46302&edit=1