-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add switch in prefs for new timezone handling code; bump sync version
AD devs: before updating the sync version to 10, please make sure the new timezone code has been ported over. The core change to the scheduler is in _updateCutoff(): https://github.com/ankitects/anki/blob/9736e4a970df9b67776282cde083a7b007061e87/pylib/anki/schedv2.py#L1357 with the following supporting Python functions: https://github.com/ankitects/anki/blob/9736e4a970df9b67776282cde083a7b007061e87/pylib/anki/schedv2.py#L1410 _timing_today() is calculated in Rust (lines up to 92, the rest are tests): https://github.com/ankitects/anki/blob/9736e4a970df9b67776282cde083a7b007061e87/rslib/src/sched/cutoff.rs#L20 The change went through a few iterations before stabilising, so it's probably easier to refer to the above code than the patches that got us to that point.
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters