Open fabd opened 2 years ago
Account > Timezone setting : add a descrtiptive label to say exactly when the SRS update happens #57
Likely steps, brainstormed in "Next day starts at" Option #248
Next day starts at ___ hours past midnight
setting in the Spaced Repetition Screen, which is a Vue component, https://github.com/fabd/kanji-koohii/blob/master/src/vite/src/vue/account/SpacedRepetitionForm.vuesqlMidnightTime
to UsersPeer, as I';m not sure all the other places sqlLocalTime
is used and what side effects it would have to change the existing method https://github.com/fabd/kanji-koohii/blob/master/src/lib/peer/UsersPeer.php#L309 - this would essentially do sql DATE( x )
of what the existing function returnsm truncating the HMS, so it is a localized midnight timenextdaystartsat
setting ; therefore then the midnight time used in the due card selection would take in account the user's Next day starts at
settingAlso maybe then set the default value of this setting to 5 AM or so ?
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.
Discussed in https://github.com/fabd/kanji-koohii/discussions/248