fabd / kanji-koohii

A web application to help Japanese language learners remember the kanji.
https://kanji.koohii.com
GNU Affero General Public License v3.0
228 stars 21 forks source link

Implement "Next day starts at ___ hours past midnight" SRS Option #249

Open fabd opened 2 years ago

fabd commented 2 years ago

Discussed in https://github.com/fabd/kanji-koohii/discussions/248

Originally posted by **bradenpecora** February 23, 2022 Hi Fabrice, As always, huge fan of the site. I appreciate your work very much. -- As someone who frequently goes to bed past midnight, I often have to remember to do my SRS kanji reviews before midnight. If I forget to do that, I'm forced to combine two days of SRS. Anki has an option called "Next day starts at ___ hours past midnight" that allows you to choose when the next SRS day starts at. This would be a very useful feature to me that doesn't seem to difficult to implement. If you like this feature but don't have the time to implement it, I could try my hand at creating a pull request... I'm a bit of a novice, but I'll try me best! Thanks!
fabd commented 2 years ago

Account > Timezone setting : add a descrtiptive label to say exactly when the SRS update happens #57

fabd commented 2 years ago

Likely steps, brainstormed in "Next day starts at" Option #248

fabd commented 2 years ago

Also maybe then set the default value of this setting to 5 AM or so ?

fabd commented 2 years ago

Hmm, it does look like sqlLocalTime is only used in the code in reference to expiredate , always to select DUE or UNDUE cards in queries.

it is also used in getTodayCount() to find flashcards reviewed "today" - which can also adjust for the "next day starts at" setting.

So in theory sqlLocalTime itself could be modified to add the user's "Next day starts at" setting.