]> Sergey Matveev's repositories - mmc.git/commitdiff
tar's mtime
authorSergey Matveev <stargrave@stargrave.org>
Sun, 12 Mar 2023 08:41:02 +0000 (11:41 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 12 Mar 2023 12:42:11 +0000 (15:42 +0300)
cmd/mmc/main.go

index 99e9f3aba5f48cdcf0cc08c4fe907d1a801b7d35..c74d9f8f70b8320e6c429f53a4d5012ac8a6577d 100644 (file)
@@ -399,6 +399,7 @@ func main() {
                                Name:     fi.Name,
                                Size:     int64(len(data)),
                                Mode:     0o666,
+                               ModTime:  time.Unix(fi.CreateAt/1000, 0),
                                PAXRecords: map[string]string{
                                        "MM.FileId":   fi.Id,
                                        "MM.MIMEType": fi.MimeType,