|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2022-05-13 13:37 UTC] derick@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: derick
[2022-05-13 13:37 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 04:00:02 2025 UTC |
Description: ------------ A bunch of the Timezones supported by PHP come with a warning in the manual: "Please do not use any of the timezones listed here (besides UTC), they only exist for backward compatible reasons." I'd just like to suggest having functions that take timezone strings as arguments (such as date_default_timezone_set) trigger an E_STRICT notice when passed one of these compatibility zone names. Should the list change in future, this could give developers a heads-up. Test script: --------------- <?php date_default_timezone_set('EST'); ?> Expected result: ---------------- PHP Strict Standards: Use of compatibility Timezone ID 'EST' should be replaced with current name in test.php on line 2.