diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index b4d7feed1377aa94e665a7f29ad48d2e808c81a9..725f04efe24197a8b796987a0dd7297b59967326 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -563,7 +563,7 @@ func upgradeDb(ctx *cli.Context) {
 		bcVersion = core.BlockChainVersion
 	}
 
-	filename := fmt.Sprintf("blockchain_%d_%s.chain", bcVersion, time.Now().Format("2006-01-02_15:04:05"))
+	filename := fmt.Sprintf("blockchain_%d_%s.chain", bcVersion, time.Now().Format("20060102_150405"))
 	exportFile := filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), filename)
 
 	err = utils.ExportChain(ethereum.ChainManager(), exportFile)