Remove wrong timestamp correction from diag

This commit is contained in:
Markus Unterwaditzer
2026-02-03 20:31:46 +01:00
committed by Will Greenberg
parent fd63210bf9
commit 2781b3c7ed
3 changed files with 10 additions and 6 deletions
+8 -3
View File
@@ -191,10 +191,15 @@ pub struct SetTimeOffsetRequest {
}
pub async fn get_time() -> Json<TimeResponse> {
let system_time = Local::now();
let adjusted_time = rayhunter::clock::get_adjusted_now();
let offset_seconds = adjusted_time
.signed_duration_since(system_time)
.num_seconds();
Json(TimeResponse {
system_time: Local::now(),
adjusted_time: rayhunter::clock::get_adjusted_now(),
offset_seconds: rayhunter::clock::get_offset().num_seconds(),
system_time,
adjusted_time,
offset_seconds,
})
}