xref: /PHP-8.2/ext/date/tests/bug26317.phpt (revision c5401854)
1--TEST--
2Bug #26317 (military timezone offset signedness)
3--INI--
4date.timezone=GMT0
5--SKIPIF--
6<?php
7if (!@putenv("TZ=GMT0") || getenv("TZ") != 'GMT0') {
8    die("skip unable to change TZ environment variable\n");
9}
10?>
11--FILE--
12<?php
13    echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 16:20:42 Z"));
14    echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 09:20:42 T"));
15    echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 19:20:42 C"));
16?>
17--EXPECT--
182003-11-19 16:20:42
192003-11-19 16:20:42
202003-11-19 16:20:42
21