php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53048 date.timezone directive configured but warning is showed
Submitted: 2010-10-12 22:43 UTC Modified: 2010-10-13 05:33 UTC
From: wiltave at zipmail dot com dot br Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.3.3 OS: Microsoft Windows XP 32-bit
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: wiltave at zipmail dot com dot br
New email:
PHP Version: OS:

 

 [2010-10-12 22:43 UTC] wiltave at zipmail dot com dot br
Description:
------------
I've configured php.ini with "date.timezone = America/Sao_Paulo" but I've received the following warning: "Warning: phpinfo() [function.phpinfo]: 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/Sao_Paulo' for '-3.0/no DST' instead in C:\Desenvolvimento\www\index.php on line 1"

Test script:
---------------
<?php phpinfo(); ?>

Expected result:
----------------
No warning


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-13 01:58 UTC] uramihsayibok at gmail dot com
Did you edit the correct php.ini? Did you restart the webserver after editing it? What does phpinfo() say the master value of date.timezone is?
 [2010-10-13 05:33 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-10-13 05:33 UTC] aharvey@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Dec 02 06:00:01 2025 UTC