Switch to an unambiguous date format in Absolute Time mode (#2800)
* Switched to an unambiguous date format * Updated unit tests to reflect expected change
This commit is contained in:
parent
a3d13b2743
commit
3bc1fc4606
2 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ import java.util.TimeZone
|
|||
|
||||
class AbsoluteTimeFormatter @JvmOverloads constructor(private val tz: TimeZone = TimeZone.getDefault()) {
|
||||
private val sameDaySdf = SimpleDateFormat("HH:mm", Locale.getDefault()).apply { this.timeZone = tz }
|
||||
private val sameYearSdf = SimpleDateFormat("MM-dd HH:mm", Locale.getDefault()).apply { this.timeZone = tz }
|
||||
private val sameYearSdf = SimpleDateFormat("dd MMM, HH:mm", Locale.getDefault()).apply { this.timeZone = tz }
|
||||
private val otherYearSdf = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()).apply { this.timeZone = tz }
|
||||
private val otherYearCompleteSdf = SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()).apply { this.timeZone = tz }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue