Re: [RFC] Remove the date.timezone warning
| From: | Nikita Popov | Date: | Tue, 27 Jan 2015 11:28:17 +0000 |
| Subject: | Re: [RFC] Remove the date.timezone warning | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81233@lists.php.net to get a copy of this message | ||
On Tue, Jan 27, 2015 at 12:22 PM, Derick Rethans <derick@php.net> wrote:
> > Everything else being there to simplify implementation of websites
> > which anticipate a geographically narrow target audience?
> >
> > Anyway, I absolutely don't get why out of all the hundreds of ini
> > settings that we have, some of them vastly more important than setting
> > a timezone (like display_errors or error_reporting - newbies trip over
> > these much more often), the only one we actually require you to
> > specify is date.timezone. That seems very disproportional.
>
> But easily solved by distributions. Debian could easily stick the
> following in a post-install hook to fix it:
>
> echo -n 'date.timezone=' > /etc/php/config.d/date.ini
> cat /etc/timezone >> /etc/php/config.d/date.ini
>
So let the distros solve it ... and allow PHP to still be usable without an
ini file.
Nikita