From e10db3d56c1a43e81be81f6381f1d5d9988047ae Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 8 Apr 2025 14:38:38 +1200 Subject: [PATCH] add method to sync device time --- src/connection/connection.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/connection/connection.js b/src/connection/connection.js index e573fc8..bb760ee 100644 --- a/src/connection/connection.js +++ b/src/connection/connection.js @@ -981,6 +981,10 @@ class Connection extends EventEmitter { }); } + async syncDeviceTime() { + await this.setDeviceTime(Math.floor(Date.now() / 1000)); + } + importContact(advertPacketBytes) { return new Promise(async (resolve, reject) => { try {