diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-22 12:12:16 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-22 12:12:16 +0100 |
commit | cc359b6bb0cf9f56cdcce9235fb64dc6414b053a (patch) | |
tree | 4aaccc53206a2539d0f3d9c98edb8464b286ea76 /scripts | |
parent | Show timezone debug in status (diff) | |
download | toy-cc359b6bb0cf9f56cdcce9235fb64dc6414b053a.zip |
Fix getDay
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/toy.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
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> T getProp(String i, java.util.function.Function<String, T> f, T d = null) { |