|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-23 15:41 UTC] huan at huan dot pl
[2011-02-23 15:42 UTC] huan at huan dot pl
[2011-02-23 15:43 UTC] derick@php.net
-Status: Open
+Status: Feedback
[2011-02-23 15:43 UTC] derick@php.net
[2011-02-23 16:03 UTC] huan at huan dot pl
-Status: Feedback
+Status: Open
[2011-02-23 16:03 UTC] huan at huan dot pl
[2011-02-23 16:09 UTC] huan at huan dot pl
[2011-02-23 17:16 UTC] derick@php.net
-Status: Open
+Status: Bogus
[2011-02-23 17:16 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 18:00:01 2025 UTC |
Description: ------------ Value of "date.timezone" is being ignored and PHP uses US/Central all the time. The system is set to use 'Europe/Warsaw' timezone and it shows the right time with 'date' command. In php.ini I have: --- CUT --- [Date] date.timezone = 'Europe/Warsaw' --- CUT --- But the result of the test script is: Server timezone in php.ini is = US/Central Location of php.ini is /usr/local/etc/php5/cgi/php.ini and I had modified the right php.ini, the value of date.timezone is just being ignored and I have no idea why it uses 'US/Central' since the whole system uses other timezone Test script: --------------- <?php $script_tz = date_default_timezone_get(); if (strcmp($script_tz, ini_get('date.timezone'))) { echo "Script timezone differs from ini-set timezone.<br>\n"; if (ini_get('date.timezone')=="") { echo "Server timezone in php.ini is = not set."; }else{ echo "Server timezone in php.ini is = ".ini_get('date.timezone'); } } else { echo 'Script timezone and ini-set timezone match.'; } echo date("d/m/Y H:i:s"); ?>