From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Date/time related
Bug description: strtotime wrong interpretation of GMT dates
<?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 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]