Skip to content

Commit bbd3d50

Browse files
author
Nicolas Tallar
committed
[EC-277] Fix key's file name
1 parent bc24163 commit bbd3d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/io/iohk/ethereum/keystore/KeyStore.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class KeyStoreImpl(keyStoreDir: String, secureRandom: SecureRandom) extends KeyS
115115
IOError(ex.toString)
116116

117117
private def fileName(encKey: EncryptedKey) = {
118-
val dateStr = ZonedDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.ISO_DATE_TIME)
118+
val dateStr = ZonedDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.ISO_DATE_TIME).replace(':', '-')
119119
val addrStr = encKey.address.toUnprefixedString
120120
s"UTC--$dateStr--$addrStr"
121121
}

0 commit comments

Comments
 (0)