diff options
author | Andrea Fagiani <andfagiani@gmail.com> | 2021-02-04 09:30:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 10:30:49 +0100 |
commit | 1c97cfe43cb6bdaa0b99d61418d31019e52cd9da (patch) | |
tree | 26112b1c572ecf75872032dd9f9374caf7897eb8 | |
parent | 47d8188b3adb4361c125d582ea4c7cbb1e0be581 (diff) | |
download | noisetorch-1c97cfe43cb6bdaa0b99d61418d31019e52cd9da.tar.gz noisetorch-1c97cfe43cb6bdaa0b99d61418d31019e52cd9da.zip |
Use 24-hour clock when adding timestamps to log file names. (#92)
Co-authored-by: andreafa <andreafa@amazon.com>
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ func main() { os.Exit(0) } - date := time.Now().Format("2006_01_02_03_04_05") + date := time.Now().Format("2006_01_02_15_04_05") tmpdir := os.TempDir() f, err := os.OpenFile(filepath.Join(tmpdir, fmt.Sprintf("noisetorch-%s.log", date)), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644) if err != nil { |