From 7596ab5b7652d0d015990562d75ed75c1da4b31e Mon Sep 17 00:00:00 2001 From: anup Date: Thu, 20 Nov 2025 09:54:22 +0530 Subject: [PATCH] SET TIME Fix --- meshtastic/__main__.py | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 16854002..400b8e4c 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -1972,17 +1972,20 @@ def addRemoteAdminArgs(parser: argparse.ArgumentParser) -> argparse.ArgumentPars action="store_true", ) - group.add_argument( - "--set-time", - help="Set the time to the provided unix epoch timestamp, or the system's current time if omitted or 0.", - action="store", - type=int, - nargs="?", - default=None, - const=0, - metavar="TIMESTAMP", - ) - + group.add_argument( + "--set-time", + metavar="TIMESTAMP", + nargs="?", + type=int, + default=None, + const=0, + action="store", + help=( + "Set the device clock using a POSIX timestamp " + "(seconds since 1970-01-01 00:00:00 UTC). " + "If no TIMESTAMP is provided, the current system time is used." + ), +) return parser def initParser():