note 17649 deleted from function.strtotime by sniper

From: Date: Tue, 21 Oct 2003 11:05:12 +0000
Subject: note 17649 deleted from function.strtotime by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59025@lists.php.net to get a copy of this message
Note Submitter: eric@peters.org ---- The PostgreSQL timestamp, returns a "2001-12-08 18:52:15-08", to make the minute actually parsed, you need to tack on additional two zeros to the string. Therefore say $var = "2001-12-08 18:52:15-08"; $var .= "00"; That will make strtotime($var) correctly parse (I had problems with the minutes not being parsed - everything else seemed to parse fine though).

« previous php.notes (#59025) next »