improve SIMPLE_DATE_FORMAT
This commit is contained in:
parent
ea0ad82805
commit
ae0c21c7fe
2 changed files with 2 additions and 2 deletions
|
@ -368,7 +368,7 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage
|
|||
val duration = System.currentTimeMillis() / 1000 - item.lastUpdated
|
||||
var formattedTime = OsmandFormatter.getFormattedDuration(app, duration)
|
||||
if (duration > OsmandFormatter.MIN_DURATION_FOR_DATE_FORMAT) {
|
||||
formattedTime = OsmandFormatter.getFormattedDate(duration)
|
||||
formattedTime = OsmandFormatter.getFormattedDate(item.lastUpdated.toLong())
|
||||
description = getString(R.string.last_response) + ": $formattedTime"
|
||||
} else {
|
||||
description = getString(R.string.last_response) + ": $formattedTime " +
|
||||
|
|
|
@ -24,7 +24,7 @@ object OsmandFormatter {
|
|||
|
||||
private const val SHORT_TIME_FORMAT = "%02d:%02d"
|
||||
private const val SIMPLE_TIME_OF_DAY_FORMAT = "HH:mm"
|
||||
private const val SIMPLE_DATE_FORMAT = "dd MMM, HH:mm:ss"
|
||||
private const val SIMPLE_DATE_FORMAT = "dd MMM HH:mm:ss"
|
||||
|
||||
private val dateFormatSymbols = DateFormatSymbols.getInstance()
|
||||
private val localDaysStr = getLettersStringArray(dateFormatSymbols.shortWeekdays, 2)
|
||||
|
|
Loading…
Reference in a new issue