Re: [RFC] [PRE-VOTE] Remove the date.timezone warning
| From: | Derick Rethans | Date: | Mon, 16 Feb 2015 09:55:17 +0000 |
| Subject: | Re: [RFC] [PRE-VOTE] Remove the date.timezone warning | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82800@lists.php.net to get a copy of this message | ||
On Mon, 16 Feb 2015, Yasuo Ohgaki wrote:
> On Mon, Feb 16, 2015 at 2:40 PM, Stanislav Malyshev <smalyshev@gmail.com>
> wrote:
>
> > > Are you sure that "the ini file is created by the package
> > > maintainer and it includes the “date.timezone” setting" is true?
> > > Last time I checked it
> >
> > I my experience, it is unfortunately not universally true - I've
> > seen Linux distros with ini files that don't do that. Setting TZ
> > correctly would require some non-trivial script work, and I'm
> > guessing whoever did the package did not want to do this work.
In an earlier thread I posted what Debian needed to do. It's trivial.
> > They could of course just put UTC there but that didn't happen
> > either.
>
> I agree.
>
> The difficulty is choosing the right one. Linux is multi user system
> and users may have their own locale settings. System's default and
> user's default may differ also. Distributor cannot choose the right
> timezone automatically.
>
> If it's impossible to determine right one automatically, PHP shall
> have reasonable default which would be UTC.
The only reasonable thing is to let people chose what they want. That
means, we do *not* set the timezone by default.
If distribution maintainers want to pick something for their users,
that's fine, but I am vehemently against removing this warning.
cheers,
Derick