You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System information for bug reporting and debugging
System : Windows 11 Version 23H2
CPU : x86_64
Kernel : winnt-10.0.22631
ABI : x86_64-little_endian-llp64
WSRX : 0.2.31.g195a598
Machine : LAPTOP-5HC8OVNN-cb79d211-728d-4bbb-b01d-c7f676d5c40d
Problem
I found that the time in the log information output by wsrx is UTC time. Can we change UTC to the time corresponding to the host time zone (such as East Zone 8)?
Suggestions
Refer to this article: Rust入门秘籍 - tracing简要说明, the code may be modified in this way: desktop/pool.cc:
@@ -202,7 +202,7 @@ void LinkList::refreshStatus() {
auto latency = timer.elapsed();
if (reply->error() != QNetworkReply::NoError) {
if (m_logs) {
- m_logs->appendLog(Log(QDateTime::currentDateTimeUtc().toString(Qt::ISODate), EventLevel::ERROR,+ m_logs->appendLog(Log(QDateTime::currentDateTime().toString(Qt::ISODate), EventLevel::ERROR,
reply->errorString(), u"wsrx::desktop::pool"_s));
}
setData(index(i), LinkStatus::DEAD, StatusRole);
At the same time, there are many Utc::now() in the heartbeat module(in file wsrx/src/cli/daemon.rs), but due to insufficient experimentation, I am not sure if they should be modified.
I am a beginner in C++ and Rust, please forgive me if there are any unreasonable aspects :)
The text was updated successfully, but these errors were encountered:
That's a good suggestion, only a little problem: your implementation dropped timezone information. The Z in the end of time string means +00:00, which allows people translate it to local time in anywhere.
maybe we can turn it into local ISO time (such as 2024-11-29T12:01:39+08:00). However, considering that the organizers and players may not be in the same time zone, in order to avoid possible regional discrimination issues, this matter remains to be discussed.
That's a good suggestion, only a little problem: your implementation dropped timezone information. The Z in the end of time string means +00:00, which allows people translate it to local time in anywhere.
maybe we can turn it into local ISO time (such as 2024-11-29T12:01:39+08:00). However, considering that the organizers and players may not be in the same time zone, in order to avoid possible regional discrimination issues, this matter remains to be discussed.
Thank you for your reply! I agree with your point that we should be cautious when handling the time display for users in different regions, in order to avoid unnecessary misunderstandings. Looking forward to this issue being resolved in the future.
System information for bug reporting and debugging
Problem
I found that the time in the log information output by wsrx is UTC time. Can we change UTC to the time corresponding to the host time zone (such as East Zone 8)?
Suggestions
Refer to this article: Rust入门秘籍 - tracing简要说明, the code may be modified in this way:
desktop/pool.cc
:wsrx/src/cli/logger.rs
:At the same time, there are many
Utc::now()
in the heartbeat module(in filewsrx/src/cli/daemon.rs
), but due to insufficient experimentation, I am not sure if they should be modified.I am a beginner in C++ and Rust, please forgive me if there are any unreasonable aspects :)
The text was updated successfully, but these errors were encountered: