From fe6c91fcc71577fe407aac554b8070883f51da48 Mon Sep 17 00:00:00 2001 From: Bob Wen Date: Fri, 5 Nov 2021 18:15:37 +0800 Subject: [PATCH] there's a trick --- adjust_time.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adjust_time.coffee b/adjust_time.coffee index d6e1dd4..e474e26 100644 --- a/adjust_time.coffee +++ b/adjust_time.coffee @@ -32,7 +32,8 @@ adjust_time = (delta) -> COMMANDS = { win32: '[time ]HH[:]mm[:]ss[.]SS[ && date ]MM[-]DD[-]YY' - # FIXME linux command date or timedatectl cannot process the millisecond parts (.SSS) + # FIXME linux command date or timedatectl cannot process the millisecond parts (.SSS) + # we can wait for a whole second tick to solve the problem linux: '[date +%FT%T -s ]YYYY[-]MM[-]DDTHH[:]mm[:]ss[.]SSS' } adjust_time.command = COMMANDS[platform] or COMMANDS.linux