fix default tz on dateRange

This commit is contained in:
nick-delirium 2024-08-28 11:40:08 +02:00
parent 203791f0f6
commit 6e175f48c5
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -38,7 +38,7 @@ export function getDateRangeLabel(value) {
export function getDateRangeFromValue(value) {
const tz = JSON.parse(localStorage.getItem(TIMEZONE));
const offset = tz.value
const offset = tz ? tz.value : undefined
const now = DateTime.now().setZone(offset);