xref: /PHP-7.0/ext/date/tests/bug26320.phpt (revision 06fdf359)
1--TEST--
2Bug #26320 (strtotime handling of XML Schema/ISO 8601 format)
3--INI--
4date.timezone=GMT0
5--SKIPIF--
6if (!@putenv("TZ=GMT0") || getenv("TZ") != 'GMT0') {
7	die("skip unable to change TZ environment 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--
152003-11-19 12:30:42
162003-11-19 12:30:42
17