Annotation of embedaddon/php/ext/date/tests/bug26320.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #26320 (strtotime handling of XML Schema/ISO 8601 format)
        !             3: --INI--
        !             4: date.timezone=GMT0
        !             5: --SKIPIF--
        !             6: if (!@putenv("TZ=GMT0") || getenv("TZ") != 'GMT0') {
        !             7:        die("skip unable to change TZ enviroment variable\n");
        !             8: }
        !             9: --FILE--
        !            10: <?php
        !            11:        echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42"));
        !            12:        echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42Z"));
        !            13: ?>
        !            14: --EXPECT--
        !            15: 2003-11-19 12:30:42
        !            16: 2003-11-19 12:30:42

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