Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archives: Put less info in modification time column #65

Merged
merged 1 commit into from
May 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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