diff options
Diffstat (limited to 'packages/meshbay-android/app/src/main/kotlin/org/meshbay/client')
| -rw-r--r-- | packages/meshbay-android/app/src/main/kotlin/org/meshbay/client/photos/PhotoPlan.kt | 4 |
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)))}" } |