Re: [RFC] Remove the date.timezone warning
| From: | Kalle Sommer Nielsen | Date: | Tue, 27 Jan 2015 03:56:58 +0000 |
| Subject: | Re: [RFC] Remove the date.timezone warning | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81196@lists.php.net to get a copy of this message | ||
Hi
2015-01-27 1:34 GMT+01:00 Bob Weinand <bobwei9@hotmail.com>:
> Hey,
>
> I'd like to request removal of the date.timezone warning.
>
> Here is the RFC:
> https://wiki.php.net/rfc/date.timezone_warning_removal
> <https://wiki.php.net/rfc/date.timezone_warning_removal>
>
> Bob
I think the warning is fair as it is, if it is annoying for small use
cases like on the CLI then simply: php -d date.timezone=UTC -r "echo
date('H:i:s');" or the dirty way by using the silent operator. It used
to be a notice prior 5.3 I think or something.
While I do agree that most applications should be using UTC, which
should be set by default we sometimes need to tell userland the hard
way how things work, and/or what they should care about, like the
E_WARNING, E_CORE_ERROR, E_DEPRECATED for old php.ini settings.
-1 for removing it from my side.
--
regards,
Kalle Sommer Nielsen
kalle@php.net