1 2 3 4 5 6 7 8 9 10 11 12
package mx.trackermap.TrackerMap.utils import kotlinx.datetime.* class Formatter { companion object { fun formatDate(date: String): String { return date.substring(0 until date.indexOf('+')) .toLocalDateTime().toString().replace('T', ' ') } } }