|  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: 2021-01-15 14:45 UTC
From: Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [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
 [2021-01-15 14:45 UTC]
-Assigned To: +Assigned To: cmb
 [2021-01-15 14:45 UTC]
Automatic comment on behalf of
Log: Fix #75073: date_default_timezone_set() doesn't reflect removal
 [2021-01-15 14:45 UTC]
-Status: Verified +Status: Closed
 [2021-01-15 21:05 UTC]
Automatic comment on behalf of
Log: Fix #75073: date_default_timezone_set() doesn't reflect removal
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Mar 03 16:01:24 2021 UTC