immich/mobile/ios/WidgetExtension
Ijas 998fd5f6a8
fix(mobile): send date-only value for memories query param (#30049)
* fix(ios-widget): send date-only value for memories query param

Server v3.0.3 (immich-app#29907) validates the /memories `for` query
param with a date-only schema (YYYY-MM-DD). The iOS widget still sent a
full ISO 8601 datetime, so every request 400s and the widget shows
"Unable to connect to your Immich instance" on any server >= v3.0.3.

Build the value from the local calendar day, matching what the web
client (memory-manager.svelte.ts) and Android already send, instead of
a UTC datetime.

Also fix a related bug in the timeline provider: fetchMemory was
called with a bare try inside a Task, so a failure silently dropped
the error and never called completion, leaving the widget in a stale
state instead of showing an error card. Wrap it in a guard/try?, same
pattern already used in getSnapshot.

Fixes immich-app#30044

Signed-off-by: ajuijas <189517297+ajuijas@users.noreply.github.com>

* address review: drop unrelated widget change and comment

Signed-off-by: ajuijas <189517297+ajuijas@users.noreply.github.com>

---------

Signed-off-by: ajuijas <189517297+ajuijas@users.noreply.github.com>
Co-authored-by: ajuijas <189517297+ajuijas@users.noreply.github.com>
Co-authored-by: Santo Shakil <santoshakil@users.noreply.github.com>
2026-07-22 14:19:19 +06:00
..
Assets.xcassets feat(mobile): ios widgets (#19148) 2025-06-17 14:43:09 +00:00
widgets fix: various typos (#22867) 2025-10-13 15:25:23 +05:30
ImageEntry.swift feat(widgets): iOS widget improvements (#19893) 2025-07-15 21:17:24 -05:00
ImageWidgetView.swift feat(widgets): iOS widget improvements (#19893) 2025-07-15 21:17:24 -05:00
ImmichAPI.swift fix(mobile): send date-only value for memories query param (#30049) 2026-07-22 14:19:19 +06:00
Info.plist fix(mobile): separate group ids for separate app installs (#28448) 2026-05-21 12:25:20 -05:00
UIImage+Resize.swift feat(mobile): cache latest ios widget entry for fallback (#19824) 2025-07-09 13:59:54 -05:00
WidgetBundle.swift feat(mobile): ios widgets (#19148) 2025-06-17 14:43:09 +00:00
WidgetExtension.entitlements fix(mobile): separate group ids for separate app installs (#28448) 2026-05-21 12:25:20 -05:00