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

From: Date: Fri, 24 May 2013 16:45:35 +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 Fri, 24 May 2013, Leszek Krupiński wrote:

> On 2013-05-23 22:10, Stas Malyshev wrote:
> > > The "U" in UTC *does* stand for "Universal," after all. It's
> > > a
> > > sensible default and as such shouldn't
> > I don't think it's a sensible default - people don't actually use UTC
> > when considering dates. A minority of people can use timezone that
> > coincides with UTC, but not very many use actual UTC.
> 
> I was wondering - why not get time zone info from operating system? It's
> should be quite easy on both *nixes and Windows. That way default value would
> be "from operating system", with possibility to override it in .ini.

You can't, as the OS doesn't give you the timezone identifier in a 
portable way.

cheers,
Derick


Thread (70 messages)

« previous php.internals (#67499) next »