Replace Timestamp separator (#3002)

Replace time stamp separator to use `-`
This commit is contained in:
BigUstad
2019-12-11 17:33:17 -08:00
committed by kannappanr
parent 23aab5b458
commit 7038207039
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -46,6 +46,8 @@ var adminCmd = cli.Command{
},
}
const dateTimeFormatFilename = "2006-01-02T15-04-05.999999-07-00"
// mainAdmin is the handle for "mc admin" command.
func mainAdmin(ctx *cli.Context) error {
cli.ShowCommandHelp(ctx, ctx.Args().First())
+1 -1
View File
@@ -118,7 +118,7 @@ func mainAdminProfileStop(ctx *cli.Context) error {
fi, e := os.Stat(downloadPath)
if e == nil && !fi.IsDir() {
e = moveFile(downloadPath, downloadPath+"."+time.Now().Format("2006-01-02T15:04:05.999999-07:00"))
e = moveFile(downloadPath, downloadPath+"."+time.Now().Format(dateTimeFormatFilename))
fatalIf(probe.NewError(e), "Unable to create a backup of profile.zip")
} else {
if !os.IsNotExist(e) {