From cfe989c426f1fee5d00308848cef0e707ef8eb8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20M=C3=BCller?= Date: Fri, 24 Jul 2026 15:03:22 +0200 Subject: [PATCH] fix(frontend): append UTC offset to Instant date parameters in consumption dashboard The consumption dashboard sent dates like '2026-06-24T00:00:00' without timezone offset, which Spring could not parse into java.time.Instant. Append 'Z' suffix to produce valid ISO-8601 UTC timestamps. --- .../app/pages/consumption-dashboard/consumption-dashboard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeg_frontend/src/app/pages/consumption-dashboard/consumption-dashboard.ts b/eeg_frontend/src/app/pages/consumption-dashboard/consumption-dashboard.ts index 62a47ee..355d43f 100644 --- a/eeg_frontend/src/app/pages/consumption-dashboard/consumption-dashboard.ts +++ b/eeg_frontend/src/app/pages/consumption-dashboard/consumption-dashboard.ts @@ -63,8 +63,8 @@ export class ConsumptionDashboardComponent implements OnInit { this.isLoading.set(true); this.error.set(null); - const from = this.dateFrom() + 'T00:00:00'; - const to = this.dateTo() + 'T23:59:59'; + const from = this.dateFrom() + 'T00:00:00Z'; + const to = this.dateTo() + 'T23:59:59Z'; this.consumptionService.getDashboard(mpId, from, to).subscribe({ next: (data) => {