Skip to content

Commit

Permalink
windows filenames can't contain :
Browse files Browse the repository at this point in the history
  • Loading branch information
brensch committed Mar 10, 2022
1 parent 60b837f commit c40f348
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engine/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ func main() {
return
}

filename := fmt.Sprintf("results-%s.json", time.Now().Format(time.RFC3339))
// windows can't contain : in filenames. stitchup
filename := fmt.Sprintf("results-%s.json", time.Now().Format("20060102-150405-0700"))
f, err := os.Create(filename)
if err != nil {
log.Println("couldn't create file", filename)
log.Printf("couldn't create file %s: %+v", filename, err)
return
}
defer f.Close()
Expand Down

0 comments on commit c40f348

Please sign in to comment.