On 17 Feb 2014 at 17:04, Stuart Dallas <stuart@xxxxxxxx> wrote: > On 17 Feb 2014, at 16:55, Tim Streater <tim@xxxxxxxxxxxxxxxx> wrote: >> People shouldn't assume that all execution of PHP takes place on a server, >> because it doesn’t. > > I’m not going to get in to the arguments for and against because it was done > to death at the time, but you must understand that your use case is incredibly > rare for PHP. You sure? I would have thought that as PHP is so easy to use, lots of people might write all their local command line scripts in it. I do - it would never occur to me not to. > To get around your issue you can use the following to use the > system timezone without getting the notice: > > date_default_timezone_set(@date_default_timezone_get()); This just gives me UTC, not the timezone the user has set. -- Cheers -- Tim
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php