From 81298aa7269691b465e58dda01d8b3d6544f5e1a Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Sat, 30 Dec 2023 19:53:20 +0100 Subject: [PATCH] Fix 'never' sync not being detected in some timezones --- ui/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/settings.py b/ui/settings.py index 0719505..bc45e43 100644 --- a/ui/settings.py +++ b/ui/settings.py @@ -219,7 +219,7 @@ def update_labels(): 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: