Re: time zone ignored (both via ini or in code)
| From: | Nathan Nobbe | Date: | Tue, 02 Nov 2010 16:02:33 +0000 |
| Subject: | Re: time zone ignored (both via ini or in code) | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309237@lists.php.net to get a copy of this message | ||
On Tue, Nov 2, 2010 at 8:44 AM, Dan Yost <yodano@gmail.com> wrote:
> On Tue, Nov 2, 2010 at 9:19 AM, Nathan Nobbe <quickshiftin@gmail.com>
> wrote:
> > On Tue, Nov 2, 2010 at 7:52 AM, Dan Yost <yodano@gmail.com> wrote:
> >>
> >> So now I suppose the thread becomes: how do I get a valid US/Central
> >> (America/Chicago) timezone in PHP5?
> >
> > give the timezonedb extension a shot
> > http://pecl.php.net/package/timezonedb
>
>
> Tried it, no change. It is still impossible to get simple CENTRAL
> timezone output. This is maddening.
That's really weird since I'm sure php has its own timezone db, and it
sounds like that's where PHP is getting it if you saw the correct output
after switching date.timezone to America/Denver. What about trying
date_default_timezone_set() ?
-nathan