Re: dst and strtotime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, 2007-03-13 at 18:44 +0100, Tijnema ! wrote:
On 3/13/07, Robert Cummings <robert@xxxxxxxxxxxxx> wrote:
> On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote:
> >
> > Well that's strange since PHP4 and 5 both use the same ini file on my
> > dev box. And so they both get the following ini setting:
> >
> >     date.timezone="Canada/Eastern"
> >
> > And in php 4.4.4 I get the bad output, but in php 5.2.0 I get the > > good
> > output.
>
> FWIW PHP 4.4.6 has the same issue on my box. PHP5 does not, but PHP 5
> also outputs the EST/EDT switch.
>
>    PHP 4.4.6:
>
>        2007-03-13 1:38 PM EDT
>        2007-03-10 11:00 PM EST
>
>    PHP 5.2.0:
>
>        2007-03-13 1:38 PM EDT
>        2007-03-11 12:00 AM EST
>
> Cheers,
> Rob.

As long as you are only interested in the day, there's no problem with
adding an extra hour to the strtotime() command, it would work on PHP4
and PHP5.

Quite true. It doesn't affect me currently at all, I'm just confirming
that something strange is happening in PHP 4.

Cheers,
Rob.


Well, I just downloaded and ran configure for php 5.2.1 and it won't be happening at the moment... it errored out on my compilier, said gcc couldn't create the executables..... so.. for now.. the fix Tijnema posted is working... and thanks for the info Rob :)

Jake
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux