What hook is there to modify the time of a review that's happening now?

I’m writing an add-on that will have as configuration my “home” timezone.

I’d like to be able to set the review time based on my home time zone and not the current one.

So, for example, if my home timezone is UTC and I review at 8 AM while in a timezone at UTC+7, it will be recorded as 8 AM UTC and not 1 AM UTC.

Is there a hook that can allow me to skew the time recorded during review?

Thanks!

  • David
2 Likes

You could do raw DB queries to modify the time: Database Structure · ankidroid/Anki-Android Wiki · GitHub

I don’t recommend doing that though. Anki will still operate according to the current timezone and there’s no way to change that.

I think timezone handling has been brought up before. One of those times, the person suggested Anki should communicate with NTP servers which was… interesting…
Anyway, I think there should be a way to configure the timezone. I don’t think it would be hard to code when I looked at the chrono package.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.