From 21533691066a6e840e922aa9074608f4b32c3e22 Mon Sep 17 00:00:00 2001 From: Jose Montoya Date: Sun, 16 Jun 2024 10:43:15 -0500 Subject: [PATCH] Update Duration.scala --- .../scala/io/github/jam01/xtrasonnet/modules/Duration.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtrasonnet/src/main/scala/io/github/jam01/xtrasonnet/modules/Duration.scala b/xtrasonnet/src/main/scala/io/github/jam01/xtrasonnet/modules/Duration.scala index 3bca8dd..91dcb43 100644 --- a/xtrasonnet/src/main/scala/io/github/jam01/xtrasonnet/modules/Duration.scala +++ b/xtrasonnet/src/main/scala/io/github/jam01/xtrasonnet/modules/Duration.scala @@ -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)))