Skip to content

Commit

Permalink
feat: improve datetime format in adhoc output filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
abeaumont committed Jan 4, 2022
1 parent b887fd6 commit f08f498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/adhoc/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (w writer) write(t0, t1 time.Time) error {
} else {
ext = w.outputFormat
}
filename := fmt.Sprintf("%s-%s.%s", name, t0.UTC().Format(time.RFC3339), ext)
filename := fmt.Sprintf("%s-%s.%s", name, t0.Format("2006-01-02-15-04-05"), ext)
path := filepath.Join(dataDir, filename)
f, err := os.Create(path)
if err != nil {
Expand Down

0 comments on commit f08f498

Please sign in to comment.