mirror of https://github.com/bobwen-dev/htpdate
there's a trick
This commit is contained in:
parent
4fc70a10b4
commit
fe6c91fcc7
|
@ -32,7 +32,8 @@ adjust_time = (delta) ->
|
||||||
|
|
||||||
COMMANDS = {
|
COMMANDS = {
|
||||||
win32: '[time ]HH[:]mm[:]ss[.]SS[ && date ]MM[-]DD[-]YY'
|
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'
|
linux: '[date +%FT%T -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