Fix 'never' sync not being detected in some timezones

This commit is contained in:
Bernd Schoolmann 2023-12-30 19:53:20 +01:00
parent 94c26a76dc
commit 81298aa726
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
else:
self.websocket_connected_status_icon.set_icon("dialog-error", "error")
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.unlock_button.set_label("Unlock" if locked else "Lock")
else: