[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] LuaRocks 3.0.0-rc1
- From: Hisham <h@...>
- Date: Thu, 19 Jul 2018 16:37:26 -0300
On 19 July 2018 at 16:30, Hisham <h@hisham.hm> wrote:
> Does the following patch fix it?
Or rather, adding a single dot:
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua
index d6277119..cf49ee46 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