FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19140&edit=1

ID: 19140
Updated by: [email protected]
Reported By: joe at liquidjoe dot biz
Summary: PHP Warning regarding date and system timezone
reliance
Status: Open
Type: Bug
Package: System_Daemon
Operating System: RHEL6
Package Version: 1.0.0RC1
PHP Version: 5.3.8
Roadmap Versions:
New Comment:

Hosting provider installed timezonedb module. Warning no longer appears.


Previous Comments:
------------------------------------------------------------------------

[2011-12-16 16:14:55] jdandrea

Description:
------------
PHP Warning: date(): It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone
setting 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 'America/Chicago' for 'CST/-6.0/no DST' instead in
/usr/share/pear/System/Daemon.php on line 1045

Test script:
---------------
Use
https://pear.php.net/manual/en/package.system.system-daemon.examples.simple.php
- this replicates the problem on my RHEL6 install.

Expected result:
----------------
No PHP Warnings

------------------------------------------------------------------------

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 16, '11 at 3:45p
activeDec 16, '11 at 4:49p
posts2
users1
websitepear.php.net

1 user in discussion

Joe: 2 posts

People

Translate

site design / logo © 2023 Grokbase