Skip to content

Commit

Permalink
Update Duration.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
jam01 authored Jun 16, 2024
1 parent 85f938d commit 2153369
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object Duration {
dduration = java.time.Duration.parse('P' + duration.substring(timeIdx))
period = Period.parse(duration.substring(0, timeIdx))
} else {
period = Period.parse(duration.substring(0, timeIdx))
period = Period.parse(duration.substring(0))
}

out.put("years", memberOf(Val.Num(pos, period.getYears)))
Expand Down

0 comments on commit 2153369

Please sign in to comment.