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

Possible time rounding bug? #11

Open
leandergangso opened this issue Nov 15, 2022 · 1 comment
Open

Possible time rounding bug? #11

leandergangso opened this issue Nov 15, 2022 · 1 comment

Comments

@leandergangso
Copy link
Owner

leandergangso commented Nov 15, 2022

If the current time is 11:26 and you end a task with goc e, the end time will be set to: 11:30.
If you then start a new task before 10:30 with goc s ..., the start time will be 11:25 and not 11:30.

This should not be problematic since most breaks should last more than 5min.
If you continue to use goc s ... instead of goc e then everything will work as expected, unless you need to take a break for more than 5min, then you can use goc e.

@eigan
Copy link
Contributor

eigan commented Nov 15, 2022

Could be solved by storing the last end time, and use that as start time if lastEndTime > now - 4 min? of couse, we must then assume that the event is not adjusted in google cal

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

No branches or pull requests

2 participants