Annotation of embedaddon/php/ext/date/tests/bug30532.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #30532 (strtotime - crossing daylight savings time)
! 3: --INI--
! 4: date.timezone=America/New_York
! 5: --FILE--
! 6: <?php
! 7:
! 8: echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n";
! 9: echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n";
! 10: echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n";
! 11:
! 12: echo "\n";
! 13:
! 14: echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n";
! 15: echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n";
! 16: echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n";
! 17: ?>
! 18: --EXPECT--
! 19: 2004-10-31 01:00:00 EDT
! 20: 2004-10-31 01:00:00 EST
! 21: 2004-10-31 02:00:00 EST
! 22:
! 23: 2004-10-31 01:00:00 EDT
! 24: 2004-10-31 02:00:00 EST
! 25: 2004-10-31 03:00:00 EST
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>