Re: date.timezone E_WARNING -- Really necessary? What's the rationale?

From: Date: Sat, 25 May 2013 15:05:04 +0000
Subject: Re: date.timezone E_WARNING -- Really necessary? What's the rationale?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 25/05/13 14:09, Pierre Joye wrote:
>
> It is actually only about getting safe, cross platform/OS (even
> between Linux versions) for the TZ database. It has nothing to do
> with taste or similar subjective opinion.
>
> For the record, the behavior requested in this thread is what we had
> in earlier versions, all we got was plenty of bugs reports about
> wrong TZ detections.
>

I had missed the removal of the TZ detection code from
guess_timezone() in 5.4. So @date_default_timezone_get() is somewhat
less useful than it used to be, as a function for detecting system
settings.

> I think it is not too much asking to set it in php.ini or in your
> application.
>

At least for MediaWiki, it's certainly more important to avoid
warnings than it is to have the right local timezone. UTC is used in
any case where consistency is important. Based on other posts to this
list, I don't think we're alone in this.

-- Tim Starling


Thread (70 messages)

« previous php.internals (#67516) next »