From b783d4ac17930cce9c2ef3b8c3f502fbd5f43b93 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 Jun 2019 11:45:10 +0100 Subject: Show timezone debug in status --- scripts/toy.groovy | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/toy.groovy') 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); -- cgit v1.2.3