ceylon-sdk icon indicating copy to clipboard operation
ceylon-sdk copied to clipboard

promlem with parsing february 29 in leap year

Open MikhailMalyutin opened this issue 5 years ago • 2 comments

Next tests failed:

shared void testParseDateTimeLeapYear() {
    value result = parseDateTime("2020-02-29T12:00:00");
    assert(exists result);
}

shared void testParseDateLeapYear() {
    value result = parseDate("2020-02-29");
    assert(exists result);
}

Now parseDate and parseDateTime can't parse 29 february in leap year

MikhailMalyutin avatar Jan 10 '20 07:01 MikhailMalyutin

This might have been fixed already, see 26ba16f24701e3e3d82996617bb07f1a4e936d1a

jvasileff avatar Jan 29 '20 17:01 jvasileff

Yeah ... I seem to vaguely remember doing this, but it was soo long ago...

luolong avatar Jan 30 '20 09:01 luolong