Update adjust_time.coffee

This commit is contained in:
Bob Wen 2021-11-03 23:41:19 +08:00
parent 4034d0d255
commit 6826461e30
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ adjust_time = (delta) ->
COMMANDS = { COMMANDS = {
win32: '[wmic os set localdatetime=]YYYYMMDDHHmmss.SSS[000][+000]' win32: '[wmic os set localdatetime=]YYYYMMDDHHmmss[.]SSS[000][+000]'
linux: '[date --utc -s ]YYYY-MM-DDTHH:mm:ss.SSS' linux: '[date --utc -s ]YYYY[-]MM[-]DDTHH[:]mm[:]ss[.]SSS'
} }
adjust_time.command = COMMANDS[platform] or COMMANDS.linux adjust_time.command = COMMANDS[platform] or COMMANDS.linux