We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de22f30 commit 3505c8eCopy full SHA for 3505c8e
+stdlib/+sys/set_modtime.m
@@ -5,7 +5,8 @@
5
elseif ismac()
6
cmd = sprintf("touch -mt %s %s", string(t, "yyyyMMddHHmm"), p);
7
else
8
- cmd = sprintf("touch -d '%s' %s", string(t, "yyyy-MM-dd HH:mm:ss"), p);
+ % https://man7.org/linux/man-pages/man1/touch.1.html
9
+ cmd = sprintf("touch -t %s %s", string(t, "yyyyMMddHHmm"), p);
10
end
11
12
[s, m] = system(cmd);
0 commit comments