diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-22 11:45:10 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-22 11:45:10 +0100 |
commit | b783d4ac17930cce9c2ef3b8c3f502fbd5f43b93 (patch) | |
tree | ad17d96e2e5e75c9fd49997d2ba0f1aae81dff3e | |
parent | Extract confession into a module (diff) | |
download | toy-b783d4ac17930cce9c2ef3b8c3f502fbd5f43b93.zip |
Show timezone debug in status
-rw-r--r-- | scripts/toy.groovy | 3 |
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); |