From cc359b6bb0cf9f56cdcce9235fb64dc6414b053a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 Jun 2019 12:12:16 +0100 Subject: Fix getDay --- scripts/toy.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/toy.groovy') diff --git a/scripts/toy.groovy b/scripts/toy.groovy index fa50ddf..bd18e40 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -89,7 +89,7 @@ return new Object() { } int getDay() { - return (getTime() / DAY) * DAY; + return ((int)(getTime() / DAY) * DAY); } public T getProp(String i, java.util.function.Function f, T d = null) { -- cgit v1.2.3