Re: dst and strtotime
| From: | Jake McHenry | Date: | Mon, 12 Mar 2007 21:12:52 +0000 |
| Subject: | Re: dst and strtotime | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250322@lists.php.net to get a copy of this message | ||
Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() works fine.
Thanks,
Jake
----- Original Message ----- From: "Jake McHenry" <linux@nittanytravel.com>
To: "PHP-General" <php-general@lists.php.net>
Sent: Monday, March 12, 2007 12:26 PM
Subject: Re: [PHP] dst and strtotime
yepper date Mon Mar 12 12:25:33 EDT 2007 ----- Original Message ----- From: "Peter Lauri" <lists@dwsasia.com> To: "'Jake McHenry'" <linux@nittanytravel.com>; "'PHP-General'" <php-general@lists.php.net> Sent: Monday, March 12, 2007 5:23 PM Subject: RE: [PHP] dst and strtotimeIs your system time correct? Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-----Original Message----- From: Jake McHenry [mailto:linux@nittanytravel.com] Sent: Monday, March 12, 2007 6:10 PM To: PHP-General Subject: [PHP] dst and strtotime Hi everyone, I was hoping a problem like this wouldn't arise, but it happened :( After the dst updates on my fedora box, this broke, and worked fine before.. now gives me 3/10 instead of 3/11 for strtotime("last sunday").... anyone know why? 3/10 was saturday! $recent_period = strtotime('last sunday'); echo date("Y-m-d", $recent_period); print_r($periods); $test_recent_period = array_search($recent_period, $periods); if ($test_recent_period == '') $recent_period = strtotime('last sunday', $recent_period); Thanks, Jake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php