Skip to content

Conversation

@krugerk
Copy link
Contributor

@krugerk krugerk commented Nov 23, 2024

Given the scenario, now is 1AM and one is entering into GoalVC for a goal with a deadline of 3AM the initial date shown was tomorrow. Expected might have been today and better yet is probably yesterday since 1AM is before the 3AM deadline, thus the daystamp for a datapoint added now is still the (calendar) day before.

Fixes: #473

Given the scenario, now is 1AM and one is entering into GoalVC for a goal with a deadline of 3AM
the initial date shown was tomorrow. Expected might have been today and better yet is probably
yesterday since 1AM is before the 3AM deadline, thus the daystamp for a datapoint added _now_
is still the (calendar) day before.
@krugerk
Copy link
Contributor Author

krugerk commented Nov 23, 2024

Fixes a bug introduced in #510.

@theospears theospears merged commit 05d65e7 into beeminder:master Nov 24, 2024
1 check passed
@theospears
Copy link
Collaborator

I've merged this, but could you open a follow up PR adding one or more regression tests around the date logic?

@krugerk krugerk deleted the bugfix/stepper-starts-with-wrong-value branch November 25, 2024 00:39
@krugerk
Copy link
Contributor Author

krugerk commented Nov 25, 2024

I've merged this, but could you open a follow up PR adding one or more regression tests around the date logic?

draft here #529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date is wrong when app opened for the first time?

2 participants