more G-Labs products

Author Topic: Scheduler using GMT?  (Read 837 times)

June 16, 2015, 08:24:43 AM
Read 837 times

js

  • *
  • Information
  • Newbie
  • Posts: 2
Newbie here!  I couldn't get scheduler to run my custom program (dim/brighten lights to remind kids bedtime is approaching).  After testing, I found the time required in the cron expression was expecting GMT, rather than my local time  :o.  Is this the desired functionality? Or possibly a bug?

v1.0-beta.493
« Last Edit: June 16, 2015, 08:33:15 AM by js »

June 16, 2015, 08:50:06 AM
Reply #1

mvdarend

  • *****
  • Information
  • Hero Member
  • Posts: 431
That doesn't sound right, have you checked the system time (and timezone) on the machine running HomeGenie?

June 16, 2015, 04:00:47 PM
Reply #2

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
If you are running RPi, make sure you set the time zone correct.  By default, all settings on RPi images seem to be for England (where the RPi was developed).

June 17, 2015, 06:53:13 AM
Reply #3

js

  • *
  • Information
  • Newbie
  • Posts: 2
Thanks for your help!

The fix was to run the following on my raspberry pi2 and set the time properly:
Code: [Select]
sudo dpkg-reconfigure tzdata