ScheduledScene not following Timezone.

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
toomuo
Posts: 23
Joined: 01 Jan 2015 20:14

ScheduledScene not following Timezone.

Post by toomuo »

Running V2.0.0 since it came out official (not used any beta versions).

I have the SunriseSunset module working to turn an outside light on/off during the night, this now works well
with the latest version.
I wanted another rule to turn it off at about 11.30pm, for "shutdown".
I set up a ScheduledScene for this time, but it didn't trigger.
To test, at 7.30am I set up a ScheduledScene for 7.45am for an interior light to come on - it didn't trigger.
at 11.45pm, the light came on - so the cron task seems to be running on UTC.
Here is Los Angeles, UTC-8

The Raspberry PI has the TZ set -
pi@raspberrypi ~ $ printenv TZ
America/Los_Angeles

and it is working.
pi@raspberrypi ~ $ date
Thu Jan 1 09:26:04 PST 2015

How does the Javascript engine pick up the TimeZone?
toomuo
Posts: 23
Joined: 01 Jan 2015 20:14

Re: ScheduledScene not following Timezone.

Post by toomuo »

I ran these on Jan 12th at 9pm.

http://192.168.1.9:8083/JS/Run/%28new%2 ... ring%28%29
Tue Jan 13 2015 04:59:13 GMT+0000 (UTC)

http://192.168.1.9:8083/JS/Run/%28new%2 ... ring%28%29
Tue Jan 13 2015 04:59:35 GMT+0000 (UTC)

in SSH terminal
pi@raspberrypi ~ $ date
Mon Jan 12 21:01:34 PST 2015


pi@raspberrypi ~ $ printenv TZ
America/Los_Angeles
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: ScheduledScene not following Timezone.

Post by PoltoS »

Checked it. You need to select timezone (according to Debian manual) and then reboot. After this it works perfectly
Post Reply