fix broken escaping

reviewable/pr10135/r1
yparitcher 1 year ago
parent d1081fa982
commit 706c8c5610

@ -248,9 +248,9 @@ function Kindle:setDateTime(year, month, day, hour, min, sec)
else
local command
if year and month and day then
command = string.format("date -s '%d-%d-%d %d:%d:%d' '+%Y-%m-%d %H:%M:%S'", year, month, day, hour, min, sec)
command = string.format("date -s '%d-%d-%d %d:%d:%d' '+%%Y-%%m-%%d %%H:%%M:%%S'", year, month, day, hour, min, sec)
else
command = string.format("date -s '%d:%d' '+%H:%M'", hour, min)
command = string.format("date -s '%d:%d' '+%%H:%%M'", hour, min)
end
if os.execute(command) == 0 then
os.execute("hwclock -u -w")

Loading…
Cancel
Save