Anki/anki
Damien Elmes 92673c99d8 rework the new scheduler's rollover/day counting code
The previous implementation interpreted the creation date as a local
time, and applied the rollover to that. If the initial creation date
was around midnight local time, even a one hour change due to daylight
savings could result in Anki skipping or doubling up on a day. To
address this, the rollover is now applied to the current time instead
of the creation date.

The new code needs the current time passed into it. This makes it
easier to unit test, and for AnkiWeb to be able to use the user's local
timezone.

The new timezone code is currently disabled, as this code needs to be
ported to all clients before it can be activated.
2019-12-27 21:53:20 +10:00
..
importing apply black to all files 2019-12-23 10:34:10 +10:00
template Rename constants 2019-12-26 00:38:54 +01:00
__init__.py bridge->backend 2019-12-25 08:59:33 +10:00
backend.py rework the new scheduler's rollover/day counting code 2019-12-27 21:53:20 +10:00
cards.py apply black to all files 2019-12-23 10:34:10 +10:00
collection.py rework the new scheduler's rollover/day counting code 2019-12-27 21:53:20 +10:00
consts.py apply black to all files 2019-12-23 10:34:10 +10:00
db.py apply black to all files 2019-12-23 10:34:10 +10:00
decks.py add a few type hints 2019-12-25 09:19:57 +10:00
errors.py apply black to all files 2019-12-23 10:34:10 +10:00
exporting.py apply black to all files 2019-12-23 10:34:10 +10:00
find.py Use dict.setdefault 2019-12-25 15:34:30 +01:00
hooks.py apply black to all files 2019-12-23 10:34:10 +10:00
lang.py apply black to all files 2019-12-23 10:34:10 +10:00
latex.py apply black to all files 2019-12-23 10:34:10 +10:00
media.py Rename constants 2019-12-26 00:38:54 +01:00
models.py bridge->backend 2019-12-25 08:59:33 +10:00
mpv.py apply black to all files 2019-12-23 10:34:10 +10:00
notes.py add a few type hints 2019-12-25 09:19:57 +10:00
sched.py apply black to all files 2019-12-23 10:34:10 +10:00
schedv2.py rework the new scheduler's rollover/day counting code 2019-12-27 21:53:20 +10:00
sound.py apply black to all files 2019-12-23 10:34:10 +10:00
stats.py apply black to all files 2019-12-23 10:34:10 +10:00
statsbg.py statsbg credit/link 2019-08-31 10:47:01 +10:00
stdmodels.py apply black to all files 2019-12-23 10:34:10 +10:00
storage.py bridge->backend 2019-12-25 08:59:33 +10:00
sync.py apply black to all files 2019-12-23 10:34:10 +10:00
tags.py add a few type hints 2019-12-25 09:19:57 +10:00
types.py compute template requirements in Rust 2019-12-24 19:57:54 +10:00
utils.py another pylint fix 2019-12-23 12:06:26 +10:00