Skip to content

Commit 6123347

Browse files
committed
fix(ui): display temperature graph times in local timezone
Configure ApexCharts to convert UTC timestamps to the browser's local timezone for display. Previously, graph timestamps were shown in UTC regardless of the container's TZ environment variable. Fixes #30
1 parent 36b7239 commit 6123347

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webapp/frontend/src/app/modules/dashboard/dashboard.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy
229229
}
230230
},
231231
xaxis: {
232-
type: 'datetime'
232+
type: 'datetime',
233+
labels: {
234+
datetimeUTC: false
235+
}
233236
}
234237
};
235238
}

0 commit comments

Comments
 (0)