From 8a970f4acde3bf727ca6f0348aabb0e5a2675feb Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 19 Jul 2018 16:28:27 -0300 Subject: fs.unix.tools: hotfix for touch format --- src/luarocks/fs/unix/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index d6277119..ca7dc6ad 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua @@ -255,7 +255,7 @@ function tools.set_time(file, time) time = os.date("*t", time) end if type(time) == "table" then - flag = ("-t %04d%02d%02d%02d%02d%02d"):format(time.year, time.month, time.day, time.hour, time.min, time.sec) + flag = ("-t %04d%02d%02d%02d%02d.%02d"):format(time.year, time.month, time.day, time.hour, time.min, time.sec) end return fs.execute(vars.TOUCH .. " " .. flag, file) end -- cgit v1.2.3-55-g6feb