note 100698 rejected from function.strtotime by danbrown

From: Date: Mon, 01 Nov 2010 12:33:25 +0000
Subject: note 100698 rejected from function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173638@lists.php.net to get a copy of this message
Note Submitter: karl at crucialp dot com ---- Someone might know this one. Todays date: 2010-11-01 On version 5.3.1 of PHP date_default_timezone_set('Australia/Sydney'); echo strftime("%Y-%m-01", strtotime("last day of last month")); Returns 2010-10-01 as expected. However on version 5.2.9 of PHP: date_default_timezone_set('Australia/Sydney'); echo strftime("%Y-%m-01", strtotime("last day of last month")); returns: 1970-01-01 Can someone explain where I am going to horribly wrong?

« previous php.notes (#173638) next »