|
Posted by Al on 04/05/05 03:53
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
Navigation:
[Reply to this message]
|