xref: /PHP-8.0/ext/date/tests/bug35422.phpt (revision 22f2b206)
1--TEST--
2Bug #35422 (strtotime() does not parse times with UTC as timezone)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7echo date(DATE_ISO8601, strtotime("July 1, 2000 00:00:00 UTC")) . "\n";
8echo date(DATE_ISO8601, strtotime("July 1, 2000 00:00:00 GMT")) . "\n";
9?>
10--EXPECT--
112000-07-01T00:00:00+0000
122000-07-01T00:00:00+0000
13