note 59798 deleted from function.strtotime by felipe
| From: | felipe@php.net | Date: | Sat, 15 Dec 2007 15:16:35 +0000 |
| Subject: | note 59798 deleted from function.strtotime by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133558@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Note that by default strtotime( ) considers the string time like a local time.
If your input string time is GMT/UTC do :
<?php
$date = '2005-12-25 00:56:27 GMT' ; // Note the timezone specification
$time = strtotime($date) ;
echo date('d/m/Y H:i:s', $time) ; // $date will be correctly localized
// « 25/12/2005 01:56:27 » for France
?>