mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Calculate timezone offset based on input
This commit is contained in:
parent
bd03c43716
commit
b49eb09a08
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue