strtotime() strangeness
| From: | Paul Scott | Date: | Mon, 04 Sep 2006 08:41:54 +0000 |
| Subject: | strtotime() strangeness | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-241348@lists.php.net to get a copy of this message | ||
I am trying to convert a date and time (from the apache2 server logs) in
the format of 27/Aug/2006:19:02:20 +0200 to a UNIX timestamp and then
reformat it as a RFC compliant date by using date('r', $thedate);
My problem is as such. In PHP-5.1.2 it works perfectly and returns the
correct date. In PHP-5.1.6 it returns false.
Anyone have a workaround for this? I know that the GNU date format works
with dates like 27 Aug 2006, but what about the time portion?
Any help on this would be massively appreciated!
--Paul