use 0 for midnight instead of 24

This commit is contained in:
tibbi 2017-02-21 21:17:05 +01:00
parent 0a68e99ace
commit 5fccb0e00b
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ object Formatter {
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 = "hh:mm a" private val PATTERN_TIME_12 = "hh:mm a"
private val PATTERN_TIME_24 = "kk:mm" private val PATTERN_TIME_24 = "HH:mm"
fun getDateFromCode(context: Context, dayCode: String, shortMonth: Boolean = false): String { fun getDateFromCode(context: Context, dayCode: String, shortMonth: Boolean = false): String {
val dateTime = getDateTimeFromCode(dayCode) val dateTime = getDateTimeFromCode(dayCode)