From 6826461e309f6c7796d87ccad88b80d699d506c1 Mon Sep 17 00:00:00 2001 From: Bob Wen Date: Wed, 3 Nov 2021 23:41:19 +0800 Subject: [PATCH] Update adjust_time.coffee --- adjust_time.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adjust_time.coffee b/adjust_time.coffee index 1049e15..ac39958 100644 --- a/adjust_time.coffee +++ b/adjust_time.coffee @@ -32,8 +32,8 @@ adjust_time = (delta) -> COMMANDS = { - win32: '[wmic os set localdatetime=]YYYYMMDDHHmmss.SSS[000][+000]' - linux: '[date --utc -s ]YYYY-MM-DDTHH:mm:ss.SSS' + win32: '[wmic os set localdatetime=]YYYYMMDDHHmmss[.]SSS[000][+000]' + linux: '[date --utc -s ]YYYY[-]MM[-]DDTHH[:]mm[:]ss[.]SSS' } adjust_time.command = COMMANDS[platform] or COMMANDS.linux