Merge pull request #1737 from jgslade/dev

Fix for Wear OS DigitalStyle watchface time is missing minutes #1726
This commit is contained in:
Milos Kozak 2022-05-16 11:09:12 +02:00 committed by GitHub
commit f2be9741cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ class DateUtil @Inject constructor(private val context: Context) {
fun hourString(): String = hourString(now()) fun hourString(): String = hourString(now())
fun hourString(mills: Long): String { fun hourString(mills: Long): String {
var format = "hha" var format = "hh"
if (android.text.format.DateFormat.is24HourFormat(context)) { if (android.text.format.DateFormat.is24HourFormat(context)) {
format = "HH" format = "HH"
} }