"Next day starts at" Option #248
Replies: 1 comment 3 replies
-
Hi braden The functionality is there, but not in an obvious way : you'll want to tweak the Timezone setting in Account > Edit Account.
Timezone setting isn't actually used for anything else but setting flashcard review timestamps. To get This should cause the conditional in the due card selection to think you're late evening when you're actually past midnight (if you shift your timezone -X hours). Honestly handling of dates melts my brain and unfortunately this is the first and only real php site I've ever built, started way back in 2005 or so... so there are lots of problems with the way the site handle timestamps. The only reason this works right now is in a very confusing way, it compares the user's localtime (which is derived from server time + server time zone setting + user's timezone setting) to the You can try to add an actual setting if you like, but it's not trivial as a lot of the code is really outdated and doesn;'t follow modern php framework practices. It would look something like this:
I'll be busy for a while with the dashboard redesign, so it might take a while till I get to it myself. So If you'd like to take a stab at this, you're welcome to do a PR. I didnt mean to be handholding, just that you;'re looking at a lot of questionable code due to maintaining a very old codebase, AND also you can't do thing even the "symfony" way as eg. it's using a custom Zend-Db like API instead of Sf's "Doctrine". So I've broke down basically the simplest way I can see how to plug this functionality without refactoring too much stuff. Either way thanks for making me think through this again. This would close #57 (converting to an issue, as it is actionable) |
Beta Was this translation helpful? Give feedback.
-
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!
Beta Was this translation helpful? Give feedback.
All reactions