astronomy: Fix bug in sun_moon.set_lto.

master
Peter Hinch 2023-12-20 10:20:43 +00:00
rodzic b4aae38fc4
commit ecd9b4d94e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -260,7 +260,7 @@ class RiSet:
def set_lto(self, t): # Update the offset from UTC
self.check_lto(t) # No need to recalc beause date is unchanged
lto = round(t * 3600) # Localtime offset in secs
self.lto = round(t * 3600) # Localtime offset in secs
def has_risen(self, sun: bool):
now = round(time.time()) + self.lto # UTC