Annotation of embedaddon/php/ext/date/tests/bug33415-1.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #33415 [1] (Possibly invalid non-one-hour DST or timezone shifts)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: print "TZ=America/Jujuy  - Is it OK for this to be 2 AM, rather than 1
        !             7: AM as per most DST transitions?\n";
        !             8: date_default_timezone_set("America/Jujuy");
        !             9: $tStamp = mktime (17, 17, 17, 1, 7593, 1970);
        !            10: print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
        !            11: $strtotime_tstamp = strtotime("next Monday", $tStamp);
        !            12: print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
        !            13: print "wanted=Monday            00:00:00\n\n";
        !            14: 
        !            15: print "TZ=Asia/Tbilisi - Is it OK for this to be 2 AM?\n";
        !            16: date_default_timezone_set("Asia/Tbilisi");
        !            17: $tStamp = mktime (17, 17, 17, 1, 12863, 1970);
        !            18: print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
        !            19: $strtotime_tstamp = strtotime("next Sunday", $tStamp);
        !            20: print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
        !            21: print "wanted=Sunday            00:00:00\n\n";
        !            22: ?>
        !            23: --EXPECT--
        !            24: TZ=America/Jujuy  - Is it OK for this to be 2 AM, rather than 1
        !            25: AM as per most DST transitions?
        !            26: tStamp=Monday 1990-10-15 17:17:17 WART 0
        !            27: result=Monday 1990-10-22 00:00:00 WART 0
        !            28: wanted=Monday            00:00:00
        !            29: 
        !            30: TZ=Asia/Tbilisi - Is it OK for this to be 2 AM?
        !            31: tStamp=Sunday 2005-03-20 17:17:17 GET 0
        !            32: result=Sunday 2005-03-27 00:00:00 GET 0
        !            33: wanted=Sunday            00:00:00

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>