OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Python interval program update 8/30/13 Re: Re: Python interval program update 8/30/13

#25491

kenbob
Member

OK here is my fix so that it will calculate your local timezone in ospy.py. It will add or subtract the time depending on where you live.

Class graph_programs:
devday=’+str(int((t – time.timezone)/86400))+

def prog_match(now, prog):
devday = int((now – time.timezone)/86400)