php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50447 TimeZone issues
Submitted: 2009-12-11 05:40 UTC Modified: 2009-12-11 07:57 UTC
From: devajyothi2000 at yahoo dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.1 OS: RHEL 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: devajyothi2000 at yahoo dot com
New email:
PHP Version: OS:

 

 [2009-12-11 05:40 UTC] devajyothi2000 at yahoo dot com
Description:
------------
Dear Friends,

   In order to test PHP after installing PHP 5.3.1 on RHEL 4 with 
Apache 2.2.14. This was the error received:-

Warning: date() [function.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.

   I edited php.ini file and entered the necessary TimeZone against 
date.timezone. After restarting Apache the problem persists.

   I searched for solutions but to no avail. I was reluctant to apply 
snaps as didn't want to disturb the present setting of the server. 
Please note that there is no other instance of PHP running on the 
server.

Regards,
D.J.Singh




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-11 06:29 UTC] rasmus@php.net
Chances are you edited the wrong php.ini or set it incorrectly.  verify 
with phpinfo() and read the docs.  This works for everyone else.
 [2009-12-11 07:57 UTC] devajyothi2000 at yahoo dot com
Its not a BUG....

Extremely sorry. It was mistake on my part as I was editing wrong 
php.ini

Regards,
D.J.Singh.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 06:00:03 2025 UTC