Re: strtotime() bug?
| From: | Al | Date: | Tue, 05 Apr 2005 00:53:54 +0000 |
| Subject: | Re: strtotime() bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212235@lists.php.net to get a copy of this message | ||
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