mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Calculate timezone offset based on input
This commit is contained in:
parent
bd03c43716
commit
b49eb09a08
@ -49,7 +49,7 @@ export function parseISO8601Date(s, toLocal) {
|
||||
ms += offset;
|
||||
}
|
||||
} else if (toLocal === false) {
|
||||
ms += new Date().getTimezoneOffset() * 60000;
|
||||
ms += new Date(ms).getTimezoneOffset() * 60000;
|
||||
}
|
||||
|
||||
return new Date(ms);
|
||||
|
Loading…
Reference in New Issue
Block a user