mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 03:28:52 +01:00
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