From e3b564b72e5d5c03351927836eeabb421ced1b2a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 7 Jan 2009 02:38:37 +0900 Subject: [PATCH] update time check up to 1 day --- ankiqt/ui/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/update.py b/ankiqt/ui/update.py index 30dde4f77..648e3ab5a 100644 --- a/ankiqt/ui/update.py +++ b/ankiqt/ui/update.py @@ -78,7 +78,8 @@ class LatestVersionFinder(QThread): if resp['latestVersion'] > ankiqt.appVersion: self.emit(SIGNAL("newVerAvail"), resp) diff = resp['currentTime'] - time.time() - if abs(diff) > 300: + # a fairly liberal time check - sync is more strict + if abs(diff) > 86400: self.emit(SIGNAL("clockIsOff"), diff) class Updater(QThread):