mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
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 adjustedServerTimeInMs = serverTimeInMs + roundTripTimeInMs / 2;
|
||||
|
||||
this.clockOffsetMs = adjustedServerTimeInMs - Date.now();
|
||||
this.clockOffsetMs = adjustedServerTimeInMs - endTime;
|
||||
}),
|
||||
catchError(() => {
|
||||
this.clockOffsetMs = 0;
|
||||
|
||||
Reference in New Issue
Block a user