2.1.45 Release Candidate

I’m running Anki Version ⁨2.1.45 (e7189f4a)⁩, Python 3.9.6 Qt 5.15.2 PyQt 5.15.4.

Consider the following add-on code:

from anki.cards import Card
from aqt import gui_hooks
from aqt.reviewer import Reviewer
import time

def test(reviewer: Reviewer, card: Card, ease: int):
    print('due:', card.due, card.due - time.time())

gui_hooks.reviewer_did_answer_card.append(test)

When I run this add-on with the V3 scheduler enabled, it reports previous due dates. I get the following output for cards in the learning queue:

due: 1627235879 -56761.076600790024
due: 1627246340 -46533.70118832588
due: 1627246360 -46650.054842710495

and so on.

For cards in the review queue, the situation is similar. card.ivl prints the previous interval.

I believe this is a bug because with the V2 scheduler the reported due dates are correct.