|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75073 date_default_timezone_set() doesn't reflect removal
Submitted: 2017-08-14 04:18 UTC Modified: 2020-03-19 11:34 UTC
From: Assigned:
Status: Verified Package: Date/time related
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-08-14 04:18 UTC]
According to <>, "Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ environment variable.".

The changelog section of that page says that in 5.3.0 the behavior was changed to throw "E_WARNING rather than E_STRICT".

The fact that neither is thrown as of PHP 7.0, however, is not mentioned and it seems like it ought to be:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-31 10:28 UTC]
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Date/time related
 [2020-03-19 11:34 UTC]
-Status: Open +Status: Verified
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 20 02:01:23 2020 UTC