eclipse-archived / ceylon-sdk

Standard platform modules belonging to the Ceylon SDK
http://www.ceylon-lang.org
Apache License 2.0
72 stars 60 forks source link

promlem with parsing february 29 in leap year #730

Open MikhailMalyutin opened 4 years ago

MikhailMalyutin commented 4 years ago

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

jvasileff commented 4 years ago

This might have been fixed already, see 26ba16f24701e3e3d82996617bb07f1a4e936d1a

luolong commented 4 years ago

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