mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-06-30 06:51:03 +02:00
Fix clock sync command
This commit is contained in:
@@ -379,8 +379,8 @@ export function useRepeaterDashboard(
|
||||
}, [sendConsoleCommand]);
|
||||
|
||||
const syncClock = useCallback(async () => {
|
||||
const epoch = Math.floor(Date.now() / 1000);
|
||||
await sendConsoleCommand(`clock ${epoch}`);
|
||||
const epochSeconds = Math.floor(Date.now() / 1000);
|
||||
await sendConsoleCommand(`time ${epochSeconds}`);
|
||||
}, [sendConsoleCommand]);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user