Merge pull request #43 from mattfbacon/ampm-fix

Properly remove AM/PM indicator
This commit is contained in:
octoshrimpy
2024-01-10 14:55:44 -07:00
committed by GitHub
@@ -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())