From bc37181dfd7c7c3e80092caa96d0ef0bce5430a9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 20 Apr 2020 20:29:28 +0200 Subject: [PATCH] use the selected date format at grouping sections --- .../com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt index 27c61a640..1e42aa243 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt @@ -549,7 +549,7 @@ class MediaFetcher(val context: Context) { return if (timestamp.areDigitsOnly()) { val cal = Calendar.getInstance(Locale.ENGLISH) 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() } else { ""