Skip to content
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

Assume yesterday for future time #332

Open
xeruf opened this issue May 28, 2020 · 1 comment
Open

Assume yesterday for future time #332

xeruf opened this issue May 28, 2020 · 1 comment
Labels
discussion Discussion on a topic

Comments

@xeruf
Copy link
Contributor

xeruf commented May 28, 2020

Especially annoying when I am working past midnight and have to adjust back:
Specifying a time then errors out with Time tracking cannot be set in the future.

If I only specify a time, it would be sensible to assume yesterday if the time is in the future, that would make my life a whole lot easier!

@sruffell
Copy link
Contributor

A note that I looked at this a bit this week. With the recent inclusion of the DatetimeParser code, I think it would be possible to return if a Datetime object is a date and time, just a date, just a time, a named range, etc.. Then values that are in the future and are naked times could be moved back to the previous day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion on a topic
Projects
None yet
Development

No branches or pull requests

3 participants