forked from upstream-mirrors/quik
Merge pull request #43 from mattfbacon/ampm-fix
Properly remove AM/PM indicator
This commit is contained in:
@@ -42,7 +42,7 @@ class DateFormatter @Inject constructor(val context: Context) {
|
||||
formattedPattern = formattedPattern
|
||||
.replace("h", "HH")
|
||||
.replace("K", "HH")
|
||||
.replace(" a".toRegex(), "")
|
||||
.replace("\\s+a".toRegex(), "")
|
||||
}
|
||||
|
||||
return SimpleDateFormat(formattedPattern, Locale.getDefault())
|
||||
|
||||
Reference in New Issue
Block a user