Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-09-14 Thread Richard Quadling
On 2 September 2013 12:16, Nikita Popov wrote: > On Mon, Sep 2, 2013 at 11:47 AM, Derick Rethans wrote: > > > On Wed, 28 Aug 2013, Nikita Popov wrote: > > > > > On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey > > wrote: > > > > > > > I'm probably not the typical PHP user; I spend 99% of my PHP t

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-09-02 Thread Nikita Popov
On Mon, Sep 2, 2013 at 11:47 AM, Derick Rethans wrote: > On Wed, 28 Aug 2013, Nikita Popov wrote: > > > On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey > wrote: > > > > > I'm probably not the typical PHP user; I spend 99% of my PHP time > > > using the CLI (and not web SAPIs). > > > This means th

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-09-02 Thread Derick Rethans
On Wed, 28 Aug 2013, Nikita Popov wrote: > On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey wrote: > > > I'm probably not the typical PHP user; I spend 99% of my PHP time > > using the CLI (and not web SAPIs). > > This means that I frequently run PHP without an .ini file. As a > > result, when I u

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-08-28 Thread Stas Malyshev
Hi! > * Set date.timezone = UTC as the default INI value > * In php.ini-production and php.ini-development uncomment the >;date.timezone = >line, i.e. change it to >date.timezone = I think this is fine but for the distros that ship with empty php.ini it'd still produce a war

RE: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-08-28 Thread Bryan C. Geraghty
-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? I agree. 2013/8/28 Nikita Popov > On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey wrote: > > > I'm probably not the typical PHP user; I spend 99% of my PHP time > > using the CLI (and not web S

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-08-28 Thread Marcel Araujo
I agree. 2013/8/28 Nikita Popov > On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey wrote: > > > I'm probably not the typical PHP user; I spend 99% of my PHP time > > using the CLI (and not web SAPIs). > > This means that I frequently run PHP without an .ini file. As a > > result, when I use any

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-08-28 Thread Nikita Popov
On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey wrote: > I'm probably not the typical PHP user; I spend 99% of my PHP time > using the CLI (and not web SAPIs). > This means that I frequently run PHP without an .ini file. As a > result, when I use any of the date/time > functionality I invariably e

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-29 Thread Richard Lynch
On Thu, May 23, 2013 3:10 pm, Stas Malyshev wrote: >> I'm probably not the typical PHP user; I spend 99% of my PHP time >> using the CLI (and not web SAPIs). >> This means that I frequently run PHP without an .ini file. As a > > I'm not sure how this follows - CLI is capable of using ini file just

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-28 Thread Jannik Zschiesche
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. > >

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Kris Craig
On Mon, May 27, 2013 at 4:35 PM, Daniel Lowrey wrote: > I understand that you can use php -d, but this is not a portable solution. > My specific use case is running a libevent-based HTTP server and I cannot > even run unit test suites without an .ini file because of this warning. Why > does PHP f

[PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Daniel Lowrey
I understand that you can use php -d, but this is not a portable solution. My specific use case is running a libevent-based HTTP server and I cannot even run unit test suites without an .ini file because of this warning. Why does PHP force me to include configuration directives that it clearly does

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Peter Cowburn
On 27 May 2013 09:35, Jannik Zschiesche wrote: > Hello, > > > would it be hard to just show the notice as soon as the user actually uses > a function regarding to date/time (and not before)? > > Currently the message is shown all the time, at the start of the script - > even if the script is as s

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Lester Caine
Sanford Whiteman wrote: I'm not talking about storage time zone; we use UTC for that. I'm talking about the default display time zone. Unless we are misunderstanding each other (not unlikely given how this thread has sprawled) you seem to be saying the display time zone should be UTC by default a

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Leszek Krupiński
On 2013-05-27 11:00, Sanford Whiteman wrote: I'm not talking about storage time zone; we use UTC for that. I'm talking about the default display time zone. Don't you think that using proper calculations for displaying dates are application developers' responsibility? Whether is it setting a pr

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Sanford Whiteman
> And if you think 'London time' is UTC then you will get just as > many problems half of tbe year. I said the *end user will assume* UTC timestamps are London time. Not that London time is UTC. People try to fit what they see into something they know. People in US-East see stuff 4-5 hours off, t

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Leszek Krupinski
On Mon, May 27, 2013 at 10:35 AM, Jannik Zschiesche wrote: > would it be hard to just show the notice as soon as the user actually uses > a function regarding to date/time (and not before)? > > Currently the message is shown all the time, at the start of the script - > even if the script is as sim

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Jannik Zschiesche
Hello, Am Montag, 27. Mai 2013 um 09:27 schrieb Pierre Joye: > On Mon, May 27, 2013 at 9:20 AM, Sanford Whiteman > (mailto:swhitemanlistens-softw...@cypressintegrated.com)> wrote: > > > I am simply making the point that UTC is not the "default default" > > even when sysops or devs put their h

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread lester
> In my opinion UTC is a good compromise. I agree that _in the absence of any other setting_ there's nothing wrong with using UTC! Let be clear: UTC is a perfectly fine hands-off default rather than issuing a warning. Non-technical end users will guess you're on London time but whatever. And if

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Nikita Popov
On Mon, May 27, 2013 at 9:27 AM, Pierre Joye wrote: > On Mon, May 27, 2013 at 9:20 AM, Sanford Whiteman > wrote: > > > I am simply making the point that UTC is not the "default default" > > even when sysops or devs put their hands in. The choice isn't just UTC > > or what the end user personally

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Leszek Krupiński
On 2013-05-27 08:49, Reinis Rozitis wrote: Again, why can't we just bypass this whole argument by adding a configure option? Something like --date.default_timezone="America/Los_Angeles"? It could then build that in so it'll assume that if there's no php.ini or if it's just not set in there. Pr

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Pierre Joye
On Mon, May 27, 2013 at 9:20 AM, Sanford Whiteman wrote: > I am simply making the point that UTC is not the "default default" > even when sysops or devs put their hands in. The choice isn't just UTC > or what the end user personally sets. Domain time exists, no matter if > Pierre has experienced

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Sanford Whiteman
> In my opinion UTC is a good compromise. I agree that _in the absence of any other setting_ there's nothing wrong with using UTC! Let be clear: UTC is a perfectly fine hands-off default rather than issuing a warning. Non-technical end users will guess you're on London time but whatever. I am s

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-27 Thread Kris Craig
On Sun, May 26, 2013 at 11:49 PM, Reinis Rozitis wrote: > Again, why can't we just bypass this whole argument by adding a configure >> option? Something like --date.default_timezone="**America/Los_Angeles"? >> It >> could then build that in so it'll assume that if there's no php.ini or if >> it

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Reinis Rozitis
Again, why can't we just bypass this whole argument by adding a configure option? Something like --date.default_timezone="America/Los_Angeles"? It could then build that in so it'll assume that if there's no php.ini or if it's just not set in there. Problem solved, everybody's use-case covered.

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Pierre Joye
hi, On Mon, May 27, 2013 at 2:45 AM, Sanford Whiteman wrote: >> Then set the TZ to UTC or whatever else fits your needs. Server side >> TZ from a php point of view can be set to whatever you want, be at the >> php.ini level or in your application configuration (and call the >> appropriate functio

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Leszek Krupiński
On 2013-05-27 07:10, Sanford Whiteman wrote: In general, I use the principle of "domain time." If a site serves a (stock) exchange that closes at 4:00pm Eastern time, people hitting that site from all over the world are not going to necessarily remember that close-of-business is such-and-such UTC

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Sanford Whiteman
> TZ setting is meant to be the timezone that your site is serving. Of > course, if the site is meant to serve multiple zones, then UTC may be > appropriate. But if your site is a local shop in Elbonia, then all your > times would be appropriate to Elbonian timezone, because all activities > are do

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Stas Malyshev
Hi! > Which is really not that nice. Why is running without an ini file even > an option if it's punished by default behavior? So you want -n to be removed? Probably is not going to happen. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 --

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Stas Malyshev
Hi! > As more and more site/services are being hosted in the cloud, allowing > requests to be handled locally geographically, in different timezones, > does it make ANY sense in setting a timezone at all other than UTC? There's no relation between location of the server/site and the timezone. If

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Kris Craig
Again, why can't we just bypass this whole argument by adding a configure option? Something like --date.default_timezone="America/Los_Angeles"? It could then build that in so it'll assume that if there's no php.ini or if it's just not set in there. Problem solved, everybody's use-case covered.

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Sanford Whiteman
> Then set the TZ to UTC or whatever else fits your needs. Server side > TZ from a php point of view can be set to whatever you want, be at the > php.ini level or in your application configuration (and call the > appropriate function). Was there something that indicated I don't know how to do this

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Pierre Joye
hi! On Sun, May 26, 2013 at 9:43 PM, Sanford Whiteman wrote: >> Until a user logs into a site and provides the data of their current >> daylight saving 'location' > Which we might as well assume will never happen. I know our users > don't waste time on this step if it's optional, and I'm not goi

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Sanford Whiteman
> Until a user logs into a site and provides the data of their current > daylight saving 'location' Which we might as well assume will never happen. I know our users don't waste time on this step if it's optional, and I'm not going to push an E_FATAL onto them by saying I'm not going to show them

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Levi Morrison
>> I did not do a very good job explaining what I meant. I meant to say >> that requiring the timezone to be set prevents you from running >> without an ini file without any warnings. This is a big annoyance. > > If you insist on using the tool in a wrong way, you will be annoyed as > the tool woul

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Tim Starling
On 26/05/13 13:50, Lester Caine wrote: > Richard Quadling wrote: >> As more and more site/services are being hosted in the cloud, allowing >> requests to be handled locally geographically, in different >> timezones, does >> it make ANY sense in setting a timezone at all other than UTC? > > This is

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Lester Caine
Richard Quadling wrote: As more and more site/services are being hosted in the cloud, allowing requests to be handled locally geographically, in different timezones, does it make ANY sense in setting a timezone at all other than UTC? This is something I have been saying all along. The whole thi

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Richard Quadling
On 26 May 2013 07:44, Stas Malyshev wrote: > Hi! > > > I did not do a very good job explaining what I meant. I meant to say > > that requiring the timezone to be set prevents you from running > > without an ini file without any warnings. This is a big annoyance. > > If you insist on using the too

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Stas Malyshev
Hi! > I did not do a very good job explaining what I meant. I meant to say > that requiring the timezone to be set prevents you from running > without an ini file without any warnings. This is a big annoyance. If you insist on using the tool in a wrong way, you will be annoyed as the tool would n

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Nikita Popov
On Sat, May 25, 2013 at 6:04 PM, Daniel Lowrey wrote: > Granted, I don't > have to answer the bug reports, but how difficult is it to say, "No, > this is not a bug. Let me google this for you," and close as "Will not > fix?" Not difficult at all. We already have the quick-fix system in place, e

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Daniel Lowrey
> This issue is less about date.timezone than being able to run without an ini > file. This is my complaint. My point of view is that PHP is a programming language, not some goofball windows application. Forcing me to use an .ini file to be able to program is a real annoyance. And in my humble op

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Ferenc Kovacs
On Sat, May 25, 2013 at 5:09 PM, Levi Morrison 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

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Levi Morrison
>> 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 plen

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Levi Morrison
On Sat, May 25, 2013 at 9:03 AM, Levi Morrison wrote: >> 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. > > This issue is less about date.timezone than being able to run without > an i

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Tim Starling
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 ear

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Paul Reinheimer
Hi List, > Wouldn't it be possible to have it default to the system's timezone if > available? Most software seems to be able to use the correct timezone. > From a user's pov it is strange that PHP is pretty much the only service > which has to have it's own timezone configuration. > > I apprecia

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Levi Morrison
> 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. This issue is less about date.timezone than being able to run without an ini file. -- PHP Internals - PHP Runtime Development Mailing L

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Pierre Schmitz
Am 25.05.2013 14:09, schrieb Pierre Joye: > On May 25, 2013 12:31 PM, "Tim Starling" wrote: > . >> >> It's Derick's prerogative to annoy all users half to death with >> warnings, as his way of indicating his distaste for the state of OS >> support for querying of system timezone. > > It is actual

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Pierre Joye
On May 25, 2013 12:31 PM, "Tim Starling" wrote: . > > It's Derick's prerogative to annoy all users half to death with > warnings, as his way of indicating his distaste for the state of OS > support for querying of system timezone. It is actually only about getting safe, cross platform/OS (even be

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-25 Thread Tim Starling
On 23/05/13 20:40, Daniel Lowrey wrote: > If it's going to default to UTC anyway should there really be an > E_WARNING? Can't PHP just quietly use UTC? The "U" in UTC *does* > stand for "Universal," after all. It's a sensible default and as > such shouldn't merit a warning. Actually, the sensible

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Nikita Popov
On Fri, May 24, 2013 at 2:40 AM, Derick Rethans wrote: > On Thu, 23 May 2013, Daniel Lowrey wrote: > > > I guess my point is that I don't believe default settings should > > trigger errors. If it's a default setting, it's a default setting. > > No - you, as an admin, are required to make an infor

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Levi Morrison
> "If none of the above succeed, date_default_timezone_get() will return a > default timezone of UTC." It will still raise a warning, by the way. This is horrible behavior; I recommend the following: date_default_timezone_set(ini_get('date.timezone') ?: 'UTC'); This is basically what date_de

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Ralph Schindler
While UTC is not *ideal*, I am failing to see why its not a reasonable default. After all, according to http://us3.php.net/manual/en/function.date-default-timezone-get.php "If none of the above succeed, date_default_timezone_get() will return a default timezone of UTC." If people care about

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Derick Rethans
On Fri, 24 May 2013, Patrick Schaaf wrote: > Am 24.05.2013 18:45 schrieb "Derick Rethans" : > > > > On Fri, 24 May 2013, Leszek Krupiński wrote: > > > > > I was wondering - why not get time zone info from operating > > > system? It's should be quite easy on both *nixes and Windows. That > > > wa

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Patrick Schaaf
Am 24.05.2013 18:45 schrieb "Derick Rethans" : > > On Fri, 24 May 2013, Leszek Krupiński wrote: > > > 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 possi

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Derick Rethans
On Fri, 24 May 2013, Leszek Krupiński wrote: > On 2013-05-24 10:34, Johannes Schlüter wrote: > > On Fri, 2013-05-24 at 01:16 -0700, Kris Craig wrote: > > > Couldn't we take a page from MySQL's book and have a setup script that > > > prompts the admin for this (much like theirs prompts for a root p

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Derick Rethans
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

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Leszek Krupiński
On 2013-05-24 10:34, Johannes Schlüter wrote: On Fri, 2013-05-24 at 01:16 -0700, Kris Craig wrote: Couldn't we take a page from MySQL's book and have a setup script that prompts the admin for this (much like theirs prompts for a root password). A reminder to run it could be added as a nag at t

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Johannes Schlüter
On Fri, 2013-05-24 at 01:16 -0700, Kris Craig wrote: > Couldn't we take a page from MySQL's book and have a setup script that > prompts the admin for this (much like theirs prompts for a root password). > A reminder to run it could be added as a nag at the end of the install; > or, perhaps even ha

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Kris Craig
On Fri, May 24, 2013 at 1:16 AM, Kris Craig wrote: > > > On Fri, May 24, 2013 at 12:11 AM, Levi Morrison > 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

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Kris Craig
On Fri, May 24, 2013 at 12:11 AM, Levi Morrison 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

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-24 Thread Levi Morrison
>>> 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 us

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-23 Thread Leszek Krupiński
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

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-23 Thread Derick Rethans
On Thu, 23 May 2013, Daniel Lowrey wrote: > I guess my point is that I don't believe default settings should > trigger errors. If it's a default setting, it's a default setting. No - you, as an admin, are required to make an informed decision on what you want your timezone to be. There have been

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-23 Thread Daniel Lowrey
I guess my point is that I don't believe default settings should trigger errors. If it's a default setting, it's a default setting. Document it and move on. It's then the user's responsibility to define that value correctly if he/she wants something other than the default. I don't personally see m

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-23 Thread Stas Malyshev
Hi! > I'm probably not the typical PHP user; I spend 99% of my PHP time > using the CLI (and not web SAPIs). > This means that I frequently run PHP without an .ini file. As a I'm not sure how this follows - CLI is capable of using ini file just like the rest of SAPIs. Why not create it? > The "U

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-23 Thread Nikita Popov
On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey wrote: > I'm probably not the typical PHP user; I spend 99% of my PHP time > using the CLI (and not web SAPIs). > This means that I frequently run PHP without an .ini file. As a > result, when I use any of the date/time > functionality I invariably e

[PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-23 Thread Daniel Lowrey
I'm probably not the typical PHP user; I spend 99% of my PHP time using the CLI (and not web SAPIs). This means that I frequently run PHP without an .ini file. As a result, when I use any of the date/time functionality I invariably end up with this awesomeness: > Warning: date(): It is not safe to