summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-06-22 12:12:16 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-06-22 12:12:16 +0100
commitcc359b6bb0cf9f56cdcce9235fb64dc6414b053a (patch)
tree4aaccc53206a2539d0f3d9c98edb8464b286ea76 /scripts/toy.groovy
parentShow timezone debug in status (diff)
downloadtoy-cc359b6bb0cf9f56cdcce9235fb64dc6414b053a.zip
Fix getDay
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy2
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) {