Fix 'never' sync not being detected in some timezones
This commit is contained in:
parent
94c26a76dc
commit
81298aa726
@ -219,7 +219,7 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
|
|||||||
else:
|
else:
|
||||||
self.websocket_connected_status_icon.set_icon("dialog-error", "error")
|
self.websocket_connected_status_icon.set_icon("dialog-error", "error")
|
||||||
self.last_sync_row.set_subtitle(str(status["lastSynced"]))
|
self.last_sync_row.set_subtitle(str(status["lastSynced"]))
|
||||||
if status["lastSynced"].startswith("1970"):
|
if status["lastSynced"].startswith("1970") or status["lastSynced"].startswith("1969"):
|
||||||
self.last_sync_row.set_subtitle("Never")
|
self.last_sync_row.set_subtitle("Never")
|
||||||
self.unlock_button.set_label("Unlock" if locked else "Lock")
|
self.unlock_button.set_label("Unlock" if locked else "Lock")
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user