Skip to content

Commit

Permalink
fix: change time format from 12h to 24h
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b authored Dec 7, 2020
2 parents 8bac46a + 0b5cf8b commit 55d7edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 55d7edf

Please sign in to comment.