Skip to content

Commit

Permalink
Parse years from different eras
Browse files Browse the repository at this point in the history
  • Loading branch information
satabin committed Jul 25, 2024
1 parent dd9fe33 commit 846099d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ object FromJSON extends FromJSONInstances {
// this only supports the part where the date is specified
private val lenientInstantParser =
new time.format.DateTimeFormatterBuilder()
.appendPattern("yyyy[-MM[-dd]]")
.appendPattern("uuuu[-MM[-dd]]")
.optionalStart()
.appendPattern("'T'[HH[:mm[:ss]]]")
.appendFraction(time.temporal.ChronoField.NANO_OF_SECOND, 0, 9, true)
Expand Down

0 comments on commit 846099d

Please sign in to comment.