mirror-immich/server
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 fix(server): memory fragmentation (#27027) 2026-03-26 18:21:52 +01:00
src fix: timestamp handling for database backup in Web UI (#27359) 2026-04-06 17:27:48 +02:00
test chore(server): use dev version check endpoint for non-production environments (#27508) 2026-04-05 10:52:59 +01:00
.gitignore feat(web): re-add open graph tags for public share links (#5635) 2023-12-11 13:37:47 -06:00
.npmignore chore: use pnpm for builds (#19752) 2025-08-19 08:55:24 -04:00
.nvmrc chore(deps): update node.js to v24.14.1 (#27412) 2026-03-31 12:46:38 +02:00
.prettierignore refactor: migrate map repository to kysely (#15348) 2025-01-17 09:14:42 -06:00
.prettierrc fix(server): lint import order (#3974) 2023-09-04 21:45:59 +02:00
Dockerfile chore(deps): update base-image to v202603251709 (major) (#27273) 2026-03-25 14:04:26 -05:00
Dockerfile.dev chore(deps): update base-image to v202603251709 (major) (#27273) 2026-03-25 14:04:26 -05:00
eslint.config.mjs chore: finish migrating eslint config files; bump unicorn (#17200) 2025-03-31 12:18:25 +01:00
helmet.json feat: add support for helmet configuration (#27058) 2026-03-26 17:41:23 +00:00
mise.toml feat: mise monorepo tasks (#23691) 2025-11-10 15:55:15 +01:00
nest-cli.json fix: isolate docker host/container filesystem for node_modules and build output (#21167) 2025-08-24 13:09:45 -05:00
package.json chore(deps): update node.js to v24.14.1 (#27412) 2026-03-31 12:46:38 +02:00
tsconfig.build.json fix: exclude e2e format (#3250) 2023-07-13 21:41:16 -05:00
tsconfig.json chore: migrate to sql-tools library (#26400) 2026-02-23 09:50:16 -05:00