immich/server/src
Afonso Mendonça Ribeiro 95c1f0efeb
fix: timestamp handling for database backup in Web UI (#27359)
* Fix #26502: Fix timestamp handling for database backup in Web UI

Frontend parsed backup timestamps as UTC, but they were in the
server's local timezone, causing wrong relative times.

Add `timezone` field to DatabaseBackupDto to expose server timezone.
Update frontend to parse timestamps using this timezone.
Convert timestamps to user's local timezone before rendering.
Fallback to browser timezone if server timezone is missing.

Ensures correct relative time display in Web UI.

* fix: regenerate open-api types and remove custom backup type

- Ran `make open-api` to update types based on backend changes
- Removed custom BackupWithTimezone type in MaintenanceBackupsList
- Updated timezone props to use the newly generated native type

* fix: simplify timezone handling for database backups

- Updated DatabaseBackupDto to make timezone a required property
- Removed manual DateTime.local().zoneName fallbacks
- Cleaned up type casts after regenerating OpenAPI types

* fix: Add missing newline at end of spec file
2026-04-06 17:27:48 +02:00
..
bin chore: migrate migration scripts to sql tools (#26537) 2026-02-26 17:59:52 +01:00
commands chore: migrate to sql-tools library (#26400) 2026-02-23 09:50:16 -05:00
controllers feat(server): resolve duplicates (#25316) 2026-03-26 18:33:55 +00:00
cores refactor: move encoded video to asset files table (#26863) 2026-03-12 16:15:21 -04:00
dtos fix: timestamp handling for database backup in Web UI (#27359) 2026-04-06 17:27:48 +02:00
emails fix(docs): add & fix missing alt text to store badge images (#24637) 2025-12-19 09:00:31 -06:00
maintenance fix(database restores): don't assume onboarding has completed (#27052) 2026-03-26 18:30:14 +01:00
middleware fix(server): sync files to disk (#26881) 2026-03-17 06:33:43 -05:00
queries fix(server): double exif join (#27485) 2026-04-03 18:14:46 +02:00
repositories chore(server): use dev version check endpoint for non-production environments (#27508) 2026-04-05 10:52:59 +01:00
schema fix: migrations (#27477) 2026-04-02 17:49:26 -04:00
services fix: timestamp handling for database backup in Web UI (#27359) 2026-04-06 17:27:48 +02:00
types feat: workflow foundation (#23621) 2025-11-14 20:05:05 +00:00
utils feat(server): Add support for .ts files (#27529) 2026-04-06 15:50:05 +02:00
workers feat: restore database backups (#23978) 2026-01-20 09:22:28 -06:00
app.common.ts feat: add support for helmet configuration (#27058) 2026-03-26 17:41:23 +00:00
app.module.ts feat: move version checks to our own infrastructure (#27450) 2026-04-02 23:32:26 +01:00
config.ts fix(server): opus handling as accepted audio codec in transcode policy (#26736) 2026-03-07 13:08:42 -05:00
constants.ts fix(database restores): don't assume onboarding has completed (#27052) 2026-03-26 18:30:14 +01:00
database.ts feat(server): add checksum algorithm field (#26573) 2026-03-26 18:20:25 +00:00
decorators.ts chore: migrate to sql-tools library (#26400) 2026-02-23 09:50:16 -05:00
enum.ts feat(server): add checksum algorithm field (#26573) 2026-03-26 18:20:25 +00:00
main.ts chore: migrate to sql-tools library (#26400) 2026-02-23 09:50:16 -05:00
plugins.ts feat: workflow ui (#24190) 2025-12-20 21:07:07 -06:00
types.ts chore: upgrade to kysely 0.28.11 (#26744) 2026-03-11 16:17:31 +01:00
validation.spec.ts feat: batch change date and time relatively (#17717) 2025-08-07 13:42:33 +00:00
validation.ts feat(web): map timeline sidepanel (#26532) 2026-02-26 12:03:23 -05:00