View Single Post
Posts: 562 | Thanked: 1,732 times | Joined on Jan 2010 @ NYC
#65
So it look like I fixed my timezone offset problem. Not sure if this is the proper thing to do. But for those that suffer the same as me with my time being and hour(s) fast(slow) you could try the following:

back up, then edit ?home/user/.config/maebble/settings.py
I basically changed & added the correct offset after != 0: to > X: (x is your offset number)
So for me it was +5, instead of 0.

Code:
# Change to +5 (fall) & +0 (spring), for correct time.
def get_localtime():
    ts = 0
    if time.daylight > +0:
        ts = int(time.time()) - time.altzone
    else:
        ts = int(time.time()) - time.timezone
    return ts
I don't really know python but this is pretty straight forward. I'll look to see if the dev thinks this is a bad idea (or anyone else for that matter)

cheers

x

Last edited by xman; 2018-03-19 at 13:31. Reason: Updated my code to remind me about silly daylight savings.
 

The Following User Says Thank You to xman For This Useful Post: