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

From: Date: Tue, 28 May 2013 08:26:18 +0000
Subject: Re: date.timezone E_WARNING -- Really necessary? What's the rationale?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Peter, 

> You're describing the current behaviour; unless I'm missing something
> obvious, the warning is only displayed when you try to do something
> date-related. Your example script should not be presenting any warnings,
> regardless of the date.timezone INI setting or lack thereof.
> 
> 


you are right (I obviously missed some "hidden" [inside a library] date/time calls when
encountering this error).

This makes the following statement from Leszek interesting:
> Also, the check "if timezone not set show warning" would have to be shifted
> from initialization to call of each and every datetime function.



It seems, like this is the case then. 

--
Cheers
Jannik


Thread (70 messages)

« previous php.internals (#67577) next »