From 734b922370a56c7e3577c1f6bbdad69f75301334 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 10 Oct 2026 10:28:12 +0200 Subject: fix(android): back photos up under YYYY/YYYY-MM, not YYYY/MM A month folder named 08 alone read like an album number. Co-Authored-By: Claude Opus 5.5 --- .../app/src/main/kotlin/org/meshbay/client/photos/PhotoPlan.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-android/app/src/main/kotlin/org/meshbay/client') diff --git a/packages/meshbay-android/app/src/main/kotlin/org/meshbay/client/photos/PhotoPlan.kt b/packages/meshbay-android/app/src/main/kotlin/org/meshbay/client/photos/PhotoPlan.kt index de39669..7e7801d 100644 --- a/packages/meshbay-android/app/src/main/kotlin/org/meshbay/client/photos/PhotoPlan.kt +++ b/packages/meshbay-android/app/src/main/kotlin/org/meshbay/client/photos/PhotoPlan.kt @@ -128,9 +128,9 @@ object PhotoPlan { fun whenTaken(p: Photo): Long = if (p.taken > 0) p.taken else p.added * 1000 - /** `/YYYY/MM`, from when it was taken: an album is a directory (§9.9). */ + /** `/YYYY/YYYY-MM`, from when it was taken: an album is a directory (§9.9). */ fun dirFor(folder: String, p: Photo, zone: TimeZone): String { - val fmt = SimpleDateFormat("yyyy/MM", Locale.ROOT).apply { timeZone = zone } + val fmt = SimpleDateFormat("yyyy/yyyy-MM", Locale.ROOT).apply { timeZone = zone } return "$folder/${fmt.format(Date(whenTaken(p)))}" } -- cgit v1.2.3