From f56dfce1fe317f1704a12b39f906059517c09fd3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 26 Jan 2017 23:36:31 +0100 Subject: [PATCH] prepend single digit hours --- .../com/simplemobiletools/calendar/helpers/Formatter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Formatter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Formatter.kt index c93cad5c7..4b0863cdc 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Formatter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Formatter.kt @@ -13,8 +13,8 @@ object Formatter { val YEAR_PATTERN = "YYYY" private val DAY_PATTERN = "d" private val DAY_OF_WEEK_PATTERN = "EEE" - private val PATTERN_TIME_12 = "h:mm a" - private val PATTERN_TIME_24 = "k:mm" + private val PATTERN_TIME_12 = "hh:mm a" + private val PATTERN_TIME_24 = "kk:mm" fun getDate(context: Context, dayCode: String): String { val dateTime = getDateTimeFromCode(dayCode)