Annotation of embedaddon/php/ext/date/tests/bug26317.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #26317 (military timezone offset signedness)
                      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-19 16:20:42 Z"));
                     12:        echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 09:20:42 T"));
                     13:        echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 19:20:42 C"));
                     14: ?>
                     15: --EXPECT--
                     16: 2003-11-19 16:20:42
                     17: 2003-11-19 16:20:42
                     18: 2003-11-19 16:20:42

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