diff --git a/pylib/anki/consts.py b/pylib/anki/consts.py
index 786e4b17bf1..921a1a70211 100644
--- a/pylib/anki/consts.py
+++ b/pylib/anki/consts.py
@@ -71,7 +71,7 @@
SYNC_ZIP_SIZE = int(2.5 * 1024 * 1024)
SYNC_ZIP_COUNT = 25
SYNC_BASE = "https://sync%s.ankiweb.net/"
-SYNC_VER = 9
+SYNC_VER = 10
HELP_SITE = "https://apps.ankiweb.net/docs/manual.html"
diff --git a/qt/aqt/preferences.py b/qt/aqt/preferences.py
index ecfbe64cf4f..d59493cc729 100644
--- a/qt/aqt/preferences.py
+++ b/qt/aqt/preferences.py
@@ -92,8 +92,10 @@ def setupCollection(self):
f.dayLearnFirst.setChecked(qc.get("dayLearnFirst", False))
if self.mw.col.schedVer() != 2:
f.dayLearnFirst.setVisible(False)
+ f.new_timezone.setVisible(False)
else:
f.newSched.setChecked(True)
+ f.new_timezone.setChecked(self.mw.col.sched._new_timezone_enabled())
def updateCollection(self):
f = self.form
@@ -118,6 +120,14 @@ def updateCollection(self):
qc["addToCur"] = not f.useCurrent.currentIndex()
qc["dayLearnFirst"] = f.dayLearnFirst.isChecked()
self._updateDayCutoff()
+ if self.mw.col.schedVer() != 1:
+ was_enabled = self.mw.col.sched._new_timezone_enabled()
+ is_enabled = f.new_timezone.isChecked()
+ if was_enabled != is_enabled:
+ if is_enabled:
+ self.mw.col.sched.set_creation_offset()
+ else:
+ self.mw.col.sched.clear_creation_offset()
self._updateSchedVer(f.newSched.isChecked())
d.setMod()
diff --git a/qt/designer/preferences.ui b/qt/designer/preferences.ui
index 03ec7d8eb24..76ac79e4b53 100644
--- a/qt/designer/preferences.ui
+++ b/qt/designer/preferences.ui
@@ -7,7 +7,7 @@
0
0
422
- 611
+ 636
@@ -136,6 +136,13 @@
+ -
+
+
+ New timezone handling (not yet supported by AnkiDroid)
+
+
+
-
-
@@ -559,6 +566,7 @@
nightMode
dayLearnFirst
newSched
+ new_timezone
useCurrent
newSpread
uiScale
@@ -571,6 +579,7 @@
syncOnProgramOpen
fullSync
syncDeauth
+ media_log