-
Notifications
You must be signed in to change notification settings - Fork 310
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
[log][v2] How to convert log time to local time? #1926
Comments
I wonder if error you got is because of this errored out and fall backed to use UTC time instead, do you mind trying time-rs's plugins-workspace/plugins/log/src/lib.rs Line 158 in 36207a9
|
Then it's probably a bug in time-rs, I recommend you open a bug report there (I don't have a mac device so I can't help much here) |
@Legend-Master Hey👋, there's a reply. time-rs/time#713 (comment) |
Oh well, after some digging, it seems like you need Not sure what we can do here, maybe switch to chrono? Also see time-rs/time#293 (comment) |
Incidentally, the last I checked For what it's worth I am actively investigating a potential solution to make this work in multi-threaded situations on Unix while remaining sound and having the expected behavior in most cases. I think it's workable, but I should know for sure this coming week. |
@Legend-Master @jhpratt Ok, thank you both, I won't test |
I believe this is fixed by time v0.3.37 now, thanks @jhpratt!
|
Currently using
UseLocal
is not local time? How do I convert them correctly?Log time:
Local time:
The text was updated successfully, but these errors were encountered: