Annotation of embedaddon/php/ext/date/tests/bug26090.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #26090 (allow colons in time zone offset to strtotime())
! 3: --INI--
! 4: date.timezone=America/New_York
! 5: --FILE--
! 6: <?php
! 7: $t = '2003-10-28 10:20:30-0800';
! 8: echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
! 9:
! 10: $t = '2003-10-28 10:20:30-08:00';
! 11: echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
! 12: ?>
! 13: --EXPECT--
! 14: 2003-10-28 13:20:30 EST
! 15: 2003-10-28 13:20:30 EST
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>