better date formatting

This commit is contained in:
Phillip Thelen 2022-12-14 15:44:56 +01:00
parent 0a02495a95
commit 1abe8e86ff

View file

@ -104,7 +104,7 @@ class SubscriptionDetailsView : LinearLayout {
val now = LocalDate.now()
val nextHourglassDate = LocalDate.now().plusMonths(nextHourglass.toLong())
val format = if (now.year != nextHourglassDate.year) {
"MMMM YY"
"MM YYYY"
} else {
"MMMM"
}