summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-06-22 11:45:10 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-06-22 11:45:10 +0100
commitb783d4ac17930cce9c2ef3b8c3f502fbd5f43b93 (patch)
treead17d96e2e5e75c9fd49997d2ba0f1aae81dff3e /scripts/toy.groovy
parentExtract confession into a module (diff)
downloadtoy-b783d4ac17930cce9c2ef3b8c3f502fbd5f43b93.zip
Show timezone debug in status
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 0fc31ae..fa50ddf 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -1565,6 +1565,9 @@ return new Object() {
permit: { name, arg, schedTime, rt -> givePermission(arg) }
];
def setupShowState = {
+ def localTimeStr = localTimeOf(getTime()).format(soonFormatter);
+ show("localTime: $localTimeStr\noffsetSet: ${localTimeOffset()}\ntime_t: ${getTime()}");
+ showButton("OK");
show(
[CHASTE, COLLARED, CUFFED, CLAMPED, GAGGED, NAKED].collect {
def v = stateIs(it);