Skip to content

Commit

Permalink
Archives: Put less info in modification time column (#65)
Browse files Browse the repository at this point in the history
Not fixing yet #61, only addressing it a bit.
  • Loading branch information
doronbehar authored May 16, 2021
1 parent 3303092 commit dccf132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal_writers/archives.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ func NewArchiveLister(mimeType, filePath string) (func(w io.Writer) error, error
err := walker.Walk(filePath, func(f archiver.File) error {
fPerm := fmt.Sprintf("%v", f.Mode())
fSize := humanize.Bytes(uint64(f.Size()))
fModt := fmt.Sprintf("%v", f.ModTime())
fModtS := f.ModTime()
fModt := fmt.Sprintf("%04d-%02d-%02d %02d:%02d", fModtS.Year(), fModtS.Month(),
fModtS.Day(), fModtS.Hour(), fModtS.Minute())
var fName string
switch h := f.Header.(type) {
case zip.FileHeader:
Expand Down

0 comments on commit dccf132

Please sign in to comment.