How is this not a bug?

<?php
print date('Y-m-d H:i:s', strtotime('now UTC'))."\n";
print date('Y-m-d H:i:s', strtotime('now PST'))."\n";
?>

outputs:
2005-01-18 09:58:09 (correct)
2005-01-18 17:58:09 (incorrect)

The time zone correction is applied in the wrong direction. Does it in both current PHP 4 and 5.

Named time zones like these are supposedly deprecated, but the suggested alternative in the docs doesn't work at all:

print date('Y-m-d H:i:s', strtotime('now UTC-0800'))."\n";

1970-01-01 00:59:59

using 08:00 doesn't work either

Ideas?

Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to