php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44385 phpinfo() warns about date strict standards
Submitted: 2008-03-10 03:20 UTC Modified: 2008-03-10 18:15 UTC
From: jay3ld at yahoo dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 6CVS-2008-03-10 (snap) OS: N/A
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: jay3ld at yahoo dot com
New email:
PHP Version: OS:

 

 [2008-03-10 03:20 UTC] jay3ld at yahoo dot com
Description:
------------
The date section in phpinfo seems to be warning about date strict standards.

Reproduce code:
---------------
1. Use PHP6
2. Create a simple script with:
<?php phpinfo(); ?>
3. view the date section

Expected result:
----------------
Well, I expect to receive no errors on a phpinfo page.

Actual result:
--------------
Strict Standards: phpinfo() [function.phpinfo]: 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 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /****/phpinfo.php on line 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-10 18:15 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Broken setup -> warning for that
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 17 13:00:03 2025 UTC