summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug41842.phpt
blob: b2a5ef32acd10f0a78edecc572c2a014fb4792ae (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #41842 (Cannot create years < 0100 & negative years with date_create or new DateTime)
--FILE--
<?php
date_default_timezone_set("UTC");

$date = new DateTime('-2007-06-28 00:00:00');
echo $date->format(DATE_ISO8601);
?>
--EXPECT--
-2007-06-28T00:00:00+0000