note 22601 deleted from function.strtotime by sniper

From: Date: Tue, 21 Oct 2003 11:03:16 +0000
Subject: note 22601 deleted from function.strtotime by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59020@lists.php.net to get a copy of this message
Note Submitter: php@webdevelopers.cz ---- My previous gmstrtotime() doesn't handle daylight... I found out that strtotime() supports the "GMT" keyword. The only thing which is needed to convert GMT time string into proper UNIX timestamp is to make sure that the "GMT" keyword is present. function gmstrtotime2($string) { $string=$string.(eregi("GMT", $string) ? "" : " GMT"); return strtotime($string); }

« previous php.notes (#59020) next »