I just checked in some changes to LocalDate and LocalTime such that when constructing from a String, the correct parser is used. Before, it would always use the datetime parser, which is a bit wrong. LocalTime would require the time specification to always start with 'T', and it also accepted year-month-day values. If you passed in "10", it would think you meant year 10, which would then be dropped, producing a local time of "00:00:00".

Making this change to LocalDate and LocalTime is harmless, since they are new classes. Should we change YearMonthDay, TimeOfDay, and DateMidnight too? Would this be considered a bug fix or an incompatible change?

Reply via email to