-
Notifications
You must be signed in to change notification settings - Fork 2
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
Time Error #11
Comments
Interesting, are you using one of the compiled binaries available for download from the releases page on this GitHub repo or did you compile the binary yourself? And what OS / OS version are you running it on? |
I compiled it on Ubuntu Linux. |
Gotcha. So there's a mc-server-wrapper/.cargo/config.toml Lines 1 to 5 in c4ed71e
It's possible that either cargo isn't picking up the compilation flag when you're compiling it locally (which I'm not sure how to direct you to debug) or that there's an error determining the local offset for some other reason. You might want to try downloading the last Linux binary from https://github.com/Cldfire/mc-server-wrapper/releases and seeing if you get time in the logs with that. The other thing you could try is editing this code: mc-server-wrapper/mc-server-wrapper/src/logging.rs Lines 74 to 87 in c4ed71e
to this: let record = format!(
"[{}] [{}, {}]: {}",
time::OffsetDateTime::now_utc()
.format(&CONSOLE_TIMESTAMP_FORMAT)
.unwrap_or_else(|_| String::from("time error")),
record.target(),
record.level(),
record.args()
); That'll get you UTC time with no local offset, which is (seemingly) infallible. If you do that you probably want to mess with the time formatting above there and go from 12h -> 24h time too (ideally time formatting would be configurable in the config at some point). |
I'm getting time error. It has been happening since I installed the wrapper.
![image](https://user-images.githubusercontent.com/62039630/201623111-d3ec4c0f-d119-4fde-8034-1f53e51a0b44.png)
The text was updated successfully, but these errors were encountered: