#47466 [NEW]: Phd seems to ignores .ini timezone

From: Date: Fri, 20 Feb 2009 16:23:41 +0000
Subject: #47466 [NEW]: Phd seems to ignores .ini timezone
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1909@lists.php.net to get a copy of this message
From:             kvz@php.net
Operating system: Ubuntu Intrepid
PHP version:      Irrelevant
PHP Bug Type:     Doc Build problem
Bug description:  Phd seems to ignores .ini timezone

Description:
------------
It looks like phd is explicity trying to use the system default timezone.


 kevin@jade:/mnt/aeon# php --ini |egrep 'php\.ini$'
 Loaded Configuration File:         /etc/php5/cli/php.ini


So I've set the timezone in /etc/php5/cli/php.ini to:

 kevin@jade:~/workspace/peardoc$ cat /etc/php5/cli/php.ini |grep timezone
 ; Defines the default timezone used by the date functions
 date.timezone = 'Europe/Amsterdam'

Still phd keeps reporting: Strict Standards: date(): It is not safe to
rely on the system's timezone settings.

When I change the head of $(which phd) to:
 #!/usr/bin/php
 <?php
 date_default_timezone_set('Europe/Amsterdam');

The warnings disappear.

When I change the head of $(which phd) to:
 phpinfo(); exit();

It reads:
 Default timezone => Europe/Berlin
 date.timezone => 'Europe/Amsterdam' => 'Europe/Amsterdam'

Reproduce code:
---------------
dpkg-reconfigure tzdata
 Current default timezone: 'Europe/Amsterdam'
 Local time is now:      Fri Feb 20 17:05:33 CET 2009.
 Universal Time is now:  Fri Feb 20 16:05:33 UTC 2009.
date +%Z
 CET


phd -f xhtml -t pearchunkedhtml -o /tmp -d .manual.xml 

Expected result:
----------------
No timezone warnings

Actual result:
--------------
Strict Standards: date(): It is not safe to rely on the system's timezone
settings. Please use the date.timezone setting, the TZ environment variable
or the date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely misspelled
the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST'
instead in /usr/share/php/phd/config.php on line 78

-- 
Edit bug report at http://bugs.php.net/?id=47466&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=47466&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=47466&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=47466&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=47466&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47466&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=47466&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=47466&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=47466&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=47466&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=47466&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=47466&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=47466&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=47466&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=47466&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47466&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47466&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=47466&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=47466&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=47466&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=47466&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=47466&r=mysqlcfg



Thread (14 messages)

« previous php.doc.bugs (#1909) next »