mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Remove modification date when not available
This commit is contained in:
@@ -60,8 +60,12 @@ class FileDatabaseInfo : Serializable {
|
||||
|
||||
fun getModificationString(): String? {
|
||||
return documentFile?.lastModified()?.let {
|
||||
DateFormat.getDateTimeInstance()
|
||||
.format(Date(it))
|
||||
if (it != 0L) {
|
||||
DateFormat.getDateTimeInstance()
|
||||
.format(Date(it))
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user