From aa7be62339323554d2e4f2c0ec2bc4c29b828145 Mon Sep 17 00:00:00 2001 From: jgslade Date: Sun, 15 May 2022 08:24:55 -0600 Subject: [PATCH] fix for AM/PM being part of the hourString --- .../src/main/java/info/nightscout/androidaps/utils/DateUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/java/info/nightscout/androidaps/utils/DateUtil.kt b/shared/src/main/java/info/nightscout/androidaps/utils/DateUtil.kt index 98555b846a..4e56335320 100644 --- a/shared/src/main/java/info/nightscout/androidaps/utils/DateUtil.kt +++ b/shared/src/main/java/info/nightscout/androidaps/utils/DateUtil.kt @@ -151,7 +151,7 @@ class DateUtil @Inject constructor(private val context: Context) { fun hourString(): String = hourString(now()) fun hourString(mills: Long): String { - var format = "hha" + var format = "hh" if (android.text.format.DateFormat.is24HourFormat(context)) { format = "HH" }