From 0b5cf8b615d98a44450df47753f7e1b807cd4363 Mon Sep 17 00:00:00 2001 From: "Mark :)" Date: Mon, 7 Dec 2020 16:45:27 +0100 Subject: [PATCH] Change time format from 12h to 24h "2006-01-02_03-04" is used for 12h formats - it's probably better to use the 24h time format with "2006-01-02_15-04". --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index ba2f99b..b9b676f 100644 --- a/main.go +++ b/main.go @@ -209,7 +209,7 @@ func writeZip(backupArchivePath string, filesToBackup []string) { func writeBackup(filesToBackup []string, backupBasePath string, unitName string, fileExt string, addSubfolder bool) { now := time.Now() - timeStamp := now.Format("2006-01-02_03-04") + timeStamp := now.Format("2006-01-02_15-04") if addSubfolder { newBackupBasePath := filepath.Join(backupBasePath, unitName)