mirror of https://github.com/bobwen-dev/htpdate
Update adjust_time.coffee
This commit is contained in:
parent
4034d0d255
commit
6826461e30
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue