-
Notifications
You must be signed in to change notification settings - Fork 111
hotfix for date time travel #445
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -789,8 +789,8 @@ pub enum TimeTravelConfig { | |
|
|
||
| impl Default for TimeTravelConfig { | ||
| fn default() -> Self { | ||
| // chrono timestamp in ms, 1 hour from now | ||
| Self::AbsoluteTimestamp(Utc::now().timestamp_millis() as u64 + 3600000) | ||
| // chrono timestamp in ms, 1 hour from now + 3600000 removed | ||
| Self::AbsoluteTimestamp(Utc::now().timestamp_millis() as u64) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, it doesn't really make sense to me for the default time to be
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
when time traveling it to say x time it ends up (x time + 1hour) so seems like default value is still being applied when entering your own value |
||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd rather be clear in the docs + erroring that the timestamp should be in ms, rather than play this guessing game of should we/should we not convert. Thoughts @lgalabru?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally fixing the source of the bug would be best I'm just not sure where to find the timeTravel ui i think that may be where it is