#47466 [Com]: Phd seems to ignores .ini timezone
| From: | cjm at siegeweb dot co dot uk | Date: | Sat, 24 Oct 2009 21:10:36 +0000 |
| Subject: | #47466 [Com]: Phd seems to ignores .ini timezone | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3001@lists.php.net to get a copy of this message | ||
ID: 47466
Comment by: cjm at siegeweb dot co dot uk
Reported By: kvz@php.net
Status: Assigned
Bug Type: Doc Build problem
Operating System: Ubuntu Intrepid
PHP Version: Irrelevant
Assigned To: derick
New Comment:
Something odd just happened...
I opened php.ini in C:/PHP, deleted all but the line 'date.timezone =
Europe/London' saved, restarted IIS. It didn't work. still got the
warning.
Then I went to that start menu > All Programs > Php. Expanded it and
saw php.ini. Clicked to edit it and got a completely different version
of php.ini (with timezone commented out). Weird (as i thought i'd just
changed that). I verified that the location of the file was
C:/PHP/php.ini - it was. I browsed to C:/PHP/php.ini - opened that
only to see my new version with only the line 'date.timezone =
Europe/London'!? 2 files seemingly at the same location? Saving the
version from the start menu didn't work. So I copied the content of
the full .ini file over to the single line version, changed the
timezone, saved it restarted IIS and timezone warnings have
dissapeared.
Previous Comments:
------------------------------------------------------------------------
[2009-10-24 20:49:52] cjm at siegeweb dot co dot uk
Same problem for me (php 5.3.0 - IIS 7). Still get warning after
setting
the timezone in php.ini. Have verified timezone, tried many others,
with
quotes/without quotes. Nothing works, php ignores that line completely.
------------------------------------------------------------------------
[2009-09-01 15:55:02] rod dot lopez at archery-it dot com dot au
I got the same issue on Windows SBS 2003, IIS6, FastCGI, PHP 5.3.0.
php.ini has date.timezone = Australia/ACT, but warning still appears.
If I add <?php date_default_timezone_set('Australia/ACT'); at the
begining warning goes away.
------------------------------------------------------------------------
[2009-06-18 21:27:08] mtrias at cei dot fing dot edu dot uy
Same problem here :(
Wamp installation in Intel x86
Os: WinXp Pro
PHP: PHP 5.2.9-2 (cli) (built: Apr 9 2009 08:23:19)
And look at this! php founds value Europe/Madrid in php.ini but shows
the Strict Standard error.
T:\>php --ri date
date
date/time support => enabled
"Olson" Timezone Database Version => 2009.1
Timezone Database => internal
Strict Standards: Unknown: It is not safe to rely on the system's
timezone setti
ngs. Please use the date.timezone setting, the TZ environment variable
or the da
te_default_timezone_set() function. In case you used any of those
methods and yo
u are still getting this warning, you most likely misspelled the
timezone identi
fier. We selected 'America/Sao_Paulo' for '-3.0/no DST' instead in
Unknown on li
ne 0
Default timezone => America/Sao_Paulo
Directive => Local Value => Master Value
date.timezone => 'Europe/Madrid' => 'Europe/Madrid'
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunset_zenith => 90.583333 => 90.583333
date.sunrise_zenith => 90.583333 => 90.583333
------------------------------------------------------------------------
[2009-04-11 10:28:38] bjori@php.net
I have no idea how this could not be working.
Derick, help please :)
------------------------------------------------------------------------
[2009-03-20 12:48:57] kvz@php.net
Thanks for testing it.
root@jade:/home/kevin# pear config-get php_bin
/usr/bin/php
Could it be related to my locales?
root@jade:/home/kevin# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=nl_NL.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/47466
--
Edit this bug report at http://bugs.php.net/?id=47466&edit=1