![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #41842 (Cannot create years < 0100 & negative years with date_create or new DateTime) ! 3: --FILE-- ! 4: <?php ! 5: date_default_timezone_set("UTC"); ! 6: ! 7: $date = new DateTime('-2007-06-28 00:00:00'); ! 8: echo $date->format(DATE_ISO8601); ! 9: ?> ! 10: --EXPECT-- ! 11: -2007-06-28T00:00:00+0000