prepend single digit hours

This commit is contained in:
tibbi 2017-01-26 23:36:31 +01:00
parent bee422a15d
commit f56dfce1fe
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ object Formatter {
val YEAR_PATTERN = "YYYY" val YEAR_PATTERN = "YYYY"
private val DAY_PATTERN = "d" private val DAY_PATTERN = "d"
private val DAY_OF_WEEK_PATTERN = "EEE" private val DAY_OF_WEEK_PATTERN = "EEE"
private val PATTERN_TIME_12 = "h:mm a" private val PATTERN_TIME_12 = "hh:mm a"
private val PATTERN_TIME_24 = "k:mm" private val PATTERN_TIME_24 = "kk:mm"
fun getDate(context: Context, dayCode: String): String { fun getDate(context: Context, dayCode: String): String {
val dateTime = getDateTimeFromCode(dayCode) val dateTime = getDateTimeFromCode(dayCode)