aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Fagiani <andfagiani@gmail.com>2021-02-04 09:30:49 +0000
committerGitHub <noreply@github.com>2021-02-04 10:30:49 +0100
commit1c97cfe43cb6bdaa0b99d61418d31019e52cd9da (patch)
tree26112b1c572ecf75872032dd9f9374caf7897eb8
parent47d8188b3adb4361c125d582ea4c7cbb1e0be581 (diff)
downloadnoisetorch-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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 7af98b1..c3ccf11 100644
--- a/main.go
+++ b/main.go
@@ -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 {