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.
This commit is contained in:
parent
b1f38e752b
commit
cfe989c426
@ -63,8 +63,8 @@ export class ConsumptionDashboardComponent implements OnInit {
|
|||||||
this.isLoading.set(true);
|
this.isLoading.set(true);
|
||||||
this.error.set(null);
|
this.error.set(null);
|
||||||
|
|
||||||
const from = this.dateFrom() + 'T00:00:00';
|
const from = this.dateFrom() + 'T00:00:00Z';
|
||||||
const to = this.dateTo() + 'T23:59:59';
|
const to = this.dateTo() + 'T23:59:59Z';
|
||||||
|
|
||||||
this.consumptionService.getDashboard(mpId, from, to).subscribe({
|
this.consumptionService.getDashboard(mpId, from, to).subscribe({
|
||||||
next: (data) => {
|
next: (data) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user