-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #232 - Automatically advance internal date on day change #269
Conversation
@araujoarthur0 what do you think? |
Codecov Report
@@ Coverage Diff @@
## master #269 +/- ##
==========================================
+ Coverage 55.08% 56.78% +1.70%
==========================================
Files 13 13
Lines 1220 1231 +11
Branches 218 220 +2
==========================================
+ Hits 672 699 +27
+ Misses 480 466 -14
+ Partials 68 66 -2
Continue to review full report at Codecov.
|
I did something similar yesterday and was waiting to check today 🤣 But I chose to only change the day if the internal _today variable was set to yesterday. |
hahahah yeah, I thought about this scenario and was just lazy. Just open your PR then, if it works and I'll close mine |
Check out this commit: araujoarthur0@a9ea9be |
I did and laid out some comments there. If it works, just open a PR and let's resume it there :D |
Great! Perhaps we need to change a little the concept of "today" and "calendar day" to fix more than just the refresh. |
Hmm, correct, I thought that |
Yes! I changed the internal variable idea as well, in #272 |
Related issue
#232
Context / Background
We lost the feature of automatically transitioning the day when the user leaves TTL open and the day changes when we stopped redrawing everything from scratch.
What change is being introduced by this PR?
We now skip again to the current date when the day changes
How will this be tested?
We'll know at midnight :D