ID: 13789 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Assigned Status: Closed Bug Type: Date/time related Operating System: Linux PHP Version: 4.0.6 Old Assigned To: derick Assigned To: New Comment:
Fixed in CVS Derick Previous Comments: ------------------------------------------------------------------------ [2001-10-22 14:44:10] [EMAIL PROTECTED] <?php // format got from a PostgreSQL datetime column type $date = '2001-10-22 21:19:58+02'; $stamp = strtotime($date); $conv = date('d/m/Y H:i:s', $stamp); echo "$date\n$conv\n"; ?> Output: 2001-10-22 21:19:58+02 22/10/2001 23:17:58 It is adding 2 hours and substracting 2 minutes in all the cases (tested with more $date values). Tomas V.V.Cox ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13789&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]