use the selected date format at grouping sections

This commit is contained in:
tibbi 2020-04-20 20:29:28 +02:00
parent 638dab9d97
commit bc37181dfd

View file

@ -549,7 +549,7 @@ class MediaFetcher(val context: Context) {
return if (timestamp.areDigitsOnly()) { return if (timestamp.areDigitsOnly()) {
val cal = Calendar.getInstance(Locale.ENGLISH) val cal = Calendar.getInstance(Locale.ENGLISH)
cal.timeInMillis = timestamp.toLong() cal.timeInMillis = timestamp.toLong()
val format = if (showDay) "dd MMM yyyy" else "MMM yyyy" val format = if (showDay) context.config.dateFormat else "MMMM yyyy"
DateFormat.format(format, cal).toString() DateFormat.format(format, cal).toString()
} else { } else {
"" ""