Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Eugenio Romano
2026-07-01 23:11:15 +02:00
committed by GitHub
co-authored by Copilot Autofix powered by AI
parent 9214bf357f
commit c9d1517f45
@@ -79,7 +79,7 @@ export class TimeSyncService {
const serverTimeInMs = isServerTimeResponseInMs ? serverTimeResponse : serverTimeResponse * 1000; const serverTimeInMs = isServerTimeResponseInMs ? serverTimeResponse : serverTimeResponse * 1000;
const adjustedServerTimeInMs = serverTimeInMs + roundTripTimeInMs / 2; const adjustedServerTimeInMs = serverTimeInMs + roundTripTimeInMs / 2;
this.clockOffsetMs = adjustedServerTimeInMs - Date.now(); this.clockOffsetMs = adjustedServerTimeInMs - endTime;
}), }),
catchError(() => { catchError(() => {
this.clockOffsetMs = 0; this.clockOffsetMs = 0;