aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-android/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-android/app/src/main')
-rw-r--r--packages/meshbay-android/app/src/main/kotlin/org/meshbay/client/photos/PhotoPlan.kt4
1 files changed, 2 insertions, 2 deletions
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
- /** `<folder>/YYYY/MM`, from when it was taken: an album is a directory (§9.9). */
+ /** `<folder>/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)))}"
}