mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
use the selected date format at grouping sections
This commit is contained in:
parent
638dab9d97
commit
bc37181dfd
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
""
|
""
|
||||||
|
|
Loading…
Reference in a new issue