High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): send a full datetime from the android memories widget (#29689)
Santo Shakil9c8d718ddc9d
diff --git a/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt b/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.ktindex c55db8da93..79021aae2b 100644--- a/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt+++ b/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt@@ -14,6 +14,7 @@ import java.net.HttpURLConnectionimport java.net.URLimport java.net.URLEncoderimport java.time.LocalDate+import java.time.ZoneOffsetimport java.time.format.DateTimeFormatterclass ImmichAPI(cfg: ServerConfig) {@@ -88,7 +89,8 @@ class ImmichAPI(cfg: ServerConfig) {}suspend fun fetchMemory(date: LocalDate): List<MemoryResult> = withContext(Dispatchers.IO) {- val iso8601 = date.format(DateTimeFormatter.ISO_LOCAL_DATE)+ // server matches memories by the UTC day, so send noon UTC of the local day to land on the right day in every timezone+ val iso8601 = date.atTime(12, 0).atOffset(ZoneOffset.UTC).format(DateTimeFormatter.ISO_OFFSET_DATE_TIME)val url = buildRequestURL("/memories", listOf("for" to iso8601))val connection = (url.openConnection() as HttpURLConnection).apply {requestMethod = "GET"