xref: /PHP-8.2/ext/date/tests/bug35699.phpt (revision 97ec0f3d)
1--TEST--
2Bug #35699 (date() can't handle leap years before 1970)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7echo date(DATE_ISO8601, strtotime('1964-06-06')), "\n";
8echo date(DATE_ISO8601, strtotime('1963-06-06')), "\n";
9echo date(DATE_ISO8601, strtotime('1964-01-06')), "\n";
10?>
11--EXPECT--
121964-06-06T00:00:00+0000
131963-06-06T00:00:00+0000
141964-01-06T00:00:00+0000
15