On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote:
>
> >> -----Original Message-----
> >> From: Jake McHenry [mailto:[EMAIL PROTECTED]
> >> Sent: Tuesday, March 13, 2007 11:22 AM
> >> To: For users of Fedora; PHP-General
> >> Subject: Re: [PHP] dst and strtotime
> >>
> >> A little more info:
> >>
> >> strtotime("last monday") or yesterday, is correct, but
> >> strtotime("last
> >> sunday") gives me 3/10 (saturday), strtotime("last saturday") gives me
> >> 3/9
> >> (Friday), "last friday" gives me 3/8 thursday...... etc. maybe it will go
> >> away after a week??????
> >>
> >
> >
> > What is the output of the below?
> >
> > echo date("Y-m-d g:i A T", time());
> > echo date("Y-m-d g:i A T", strtotime("last sunday"));
>
>
> 2007-03-13 12:30 PM EDT
> 2007-03-10 11:00 PM EST
Funny stuff... I get the same under Ubuntu 6.10 with php 4.4.4 (manual
build).
Cheers,
Rob.
I live in The Netherlands, using CET, and the output is fine.
2007-03-13 5:49 PM CET
2007-03-11 12:00 AM CET
So the EDT/EST must cause the problem.
Tijnema
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php