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