xref: /php-src/ext/date/tests/bug26320.phpt (revision c5401854)
1--TEST--
2Bug #26320 (strtotime handling of XML Schema/ISO 8601 format)
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-19T12:30:42"));
14    echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42Z"));
15?>
16--EXPECT--
172003-11-19 12:30:42
182003-11-19 12:30:42
19