add seconds to the default date format

This commit is contained in:
tibbi 2019-09-02 16:36:19 +02:00
parent c38988ea9c
commit fcb4be610a
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.16.17'
propVersionName = '5.16.18'
kotlin_version = '1.3.50'
}

View file

@ -386,7 +386,7 @@ fun Context.getMyContentProviderCursorLoader() = CursorLoader(this, MyContentPro
fun Context.getDialogTheme() = if (baseConfig.backgroundColor.getContrastColor() == Color.WHITE) R.style.MyDialogTheme_Dark else R.style.MyDialogTheme
fun Context.getCurrentFormattedDateTime(): String {
val simpleDateFormat = SimpleDateFormat("yyyy-MM-dd_HH-mm", Locale.getDefault())
val simpleDateFormat = SimpleDateFormat("yyyy-MM-dd_HH-mm-ss", Locale.getDefault())
return simpleDateFormat.format(Date(System.currentTimeMillis()))
}