Re: strtotime() bug?

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

 



Al wrote:
Suddenly my strtotime() are goofy, anyone have any ideas?

echo date('Y/m/d/H', time()). "<br>"; //2005/04/04/18
echo date('Y/m/d/H', strtotime("-1 day")). "<br>"; //2005/04/03/18
echo date('Y/m/d/H', strtotime("last Sunday")). "<br>"; //2005/04/02/23


Sunday shows as Saturday.


Additional info

Problem seems to be daylight saving time problem

echo date('Y/m/d/H:i:s', strtotime("last sunday"));   //2005/04/02/23:00:00

--
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