Re: [PHP] Wrong time being displayed by PHP!

2012-10-22 Thread Richard S. Crawford
On Thu, Oct 18, 2012 at 2:12 AM, Ford, Mike wrote: > > From: underp...@gmail.com [mailto:underp...@gmail.com] On Behalf Of > > Richard S. Crawford > > Sent: 17 October 2012 19:29 > > To: PHP-General > > > > You can see the current output of the above code here: > > > > http://projectbench.extensi

RE: [PHP] Wrong time being displayed by PHP!

2012-10-18 Thread Ford, Mike
> From: underp...@gmail.com [mailto:underp...@gmail.com] On Behalf Of > Richard S. Crawford > Sent: 17 October 2012 19:29 > To: PHP-General > > You can see the current output of the above code here: > > http://projectbench.extensiondlc.net Can I ask what the fix for this was? Because that URL is

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Geoff Shang
On Wed, 17 Oct 2012, Richard S. Crawford wrote: I've confirmed that the server is set to PDT. The value of date.timezone in php.ini is "America/Los_Angeles", which should be (currently) -8 hours from UTC, but it looks like the PDT offset is only set to -4. Does that even make sense? Actually,

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Daniel Brown
On Wed, Oct 17, 2012 at 2:28 PM, Richard S. Crawford wrote: > > You can see the current output of the above code here: > > http://projectbench.extensiondlc.net > > I've confirmed that the server is set to PDT. The value of date.timezone in > php.ini is "America/Los_Angeles", which should be (curre

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Richard S. Crawford
On Tue, Oct 16, 2012 at 3:16 PM, Daniel Brown wrote: > >> With regard to debugging your issue, it's extremely unlikely that > >> it's PHP's fault, since no one else has the same issue. However, it > >> does indeed sound as though there's a configuration mismatch or a bad > >> setting of the

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Lester Caine
Daniel Brown wrote: This is the output: > >America/Los_Angeles >Tue, 16 Oct 2012 17:22:09 -0400 >Tue, 16 Oct 2012 21:22:09 + >1350422529 (-14400) >Tue Oct 16 17:22:09 EDT 2012 Is this a shared server, Rich? As shown, the admin configured the timezone of the machine to be EDT and set the

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Daniel Brown
On Oct 16, 2012 5:24 PM, "Richard S. Crawford" wrote: > > Sorry about that. I was getting very frustrated with the issue, and I forgot. I'll be sure to keep it in mind. No worries. >> >> With regard to debugging your issue, it's extremely unlikely that >> it's PHP's fault, since no one e

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
On Tue, Oct 16, 2012 at 2:05 PM, Daniel Brown wrote: > On Tue, Oct 16, 2012 at 4:19 PM, Richard S. Crawford > wrote: > > > > Thanks for the suggestion. Unfortunately the problem seems to be that PHP > > thinks the America/Los_Angeles timezone is the same as EDT. I'm not sure > > how to approach

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Daniel Brown
On Tue, Oct 16, 2012 at 4:19 PM, Richard S. Crawford wrote: > > Thanks for the suggestion. Unfortunately the problem seems to be that PHP > thinks the America/Los_Angeles timezone is the same as EDT. I'm not sure > how to approach this issue. Per list rules, just a gentle reminder: please don

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
On Tue, Oct 16, 2012 at 12:42 PM, Enrico Lamperti wrote: > You could try using > date_default_timezone_set< > http://php.net/manual/en/function.date-default-timezone-set.php>() > in your script, instead. > > And if you don't need to care about DST, you can define a specific GMT > offset

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Enrico Lamperti
You could try using date_default_timezone_set() in your script, instead. And if you don't need to care about DST, you can define a specific GMT offset . Hope it helps :) On Tue, Oc

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
I double checked the server time. It is set to "America/Los_Angeles" as well. On Tue, Oct 16, 2012 at 11:07 AM, Adam Richardson wrote: > On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford > wrote: > > The value of date.timezone in php.ini is set to "America/Los_Angeles". > > > > The local tim

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Adam Richardson
On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford wrote: > The value of date.timezone in php.ini is set to "America/Los_Angeles". > > The local time is 11:02 a.m. Yet the output of date("h:i a e") is: > > 02:02 pm America/Los_Angeles > > which is three hours ahead of the real time. > > Why is t

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread David OBrien
On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford wrote: > The value of date.timezone in php.ini is set to "America/Los_Angeles". > > The local time is 11:02 a.m. Yet the output of date("h:i a e") is: > > 02:02 pm America/Los_Angeles > > which is three hours ahead of the real time. > > Why is t

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Daniel P. Brown
On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford wrote: > The value of date.timezone in php.ini is set to "America/Los_Angeles". > > The local time is 11:02 a.m. Yet the output of date("h:i a e") is: > > 02:02 pm America/Los_Angeles > > which is three hours ahead of the real time. > > Why is t

[PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
The value of date.timezone in php.ini is set to "America/Los_Angeles". The local time is 11:02 a.m. Yet the output of date("h:i a e") is: 02:02 pm America/Los_Angeles which is three hours ahead of the real time. Why is this? What's going on? -- Sláinte, Richard S. Crawford (rich...@underpope.