From 3c43e8d6c19fee55f2273582a3682efd56839b86 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Tue, 14 Jul 2026 16:41:43 +0200 Subject: [PATCH] fix: revert "fix(mobile): send a full datetime from the android memories widget" (#29913) --- .../src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.kt index 79021aae2b..c55db8da93 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,7 +14,6 @@ import java.net.HttpURLConnection import java.net.URL import java.net.URLEncoder import java.time.LocalDate -import java.time.ZoneOffset import java.time.format.DateTimeFormatter class ImmichAPI(cfg: ServerConfig) { @@ -89,8 +88,7 @@ class ImmichAPI(cfg: ServerConfig) { } suspend fun fetchMemory(date: LocalDate): List = withContext(Dispatchers.IO) { - // 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 iso8601 = date.format(DateTimeFormatter.ISO_LOCAL_DATE) val url = buildRequestURL("/memories", listOf("for" to iso8601)) val connection = (url.openConnection() as HttpURLConnection).apply { requestMethod = "GET"