ID: 46302 Updated by: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] ~]# 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 [EMAIL PROTECTED] ~]# date Qua Out 15 11:48:24 BRT 2008 [EMAIL PROTECTED] ~]# date -u Qua Out 15 14:48:27 UTC 2008 [EMAIL PROTECTED] ~]# echo $TZ America/Sao_Paulo [EMAIL PROTECTED] ~]# 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: -------------- [EMAIL PROTECTED] ~]# 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