-
-
Notifications
You must be signed in to change notification settings - Fork 579
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
Issues when system date is far in advance #189
Comments
I had an issue on my laptop with suspend which caused the system date to be set a long way in advance. This then caused issues with atuin when it was trying to calculate the duration:
I was able to fix this by deleting the offending entries from the history.db with
An example of a screwed up entry: |
Yeah seems that atuin assumes that all time entries happen in the past. It subtracts the provided timestamp from now and then tries to turn that into a human readable time like I suppose it's possible to check that time, see if it's in the future and change it to be |
Yup this definitely needs sorting, thanks for raising it! An incorrect assumption for sure I've labelled this as a good issue to get started with. Happy to help anyone through it 👍 |
Daylight saving time came in like a wrecking ball here |
Resolve #189 We were throwing an OutOfRangeError. This occurs when you attempt to convert to a duration, and your input is <0. A value in the future would have done this. This is especially noticeable during DST...
Resolve #189 We were throwing an OutOfRangeError. This occurs when you attempt to convert to a duration, and your input is <0. A value in the future would have done this. This is especially noticeable during DST...
Resolve #189 We were throwing an OutOfRangeError. This occurs when you attempt to convert to a duration, and your input is <0. A value in the future would have done this. This is especially noticeable during DST...
Resolve #189 We were throwing an OutOfRangeError. This occurs when you attempt to convert to a duration, and your input is <0. A value in the future would have done this. This is especially noticeable during DST...
No description provided.
The text was updated successfully, but these errors were encountered: