mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Resolve #1603
This commit is contained in:
parent
28aefdddda
commit
eda85cb580
3 changed files with 742 additions and 5 deletions
|
|
@ -20,14 +20,12 @@
|
|||
parseInt(parts.minute, 10),
|
||||
parseInt(parts.second, 10)
|
||||
) : new Date(str));
|
||||
parts?.tz && (options.timeZone = parts.tz);
|
||||
parts?.tz && (options.timeZone = windowsVTIMEZONEs[parts.tz] || parts.tz);
|
||||
try {
|
||||
return date.format(options);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
if (options.timeZone) {
|
||||
// TODO: handle messy vtimezones
|
||||
// VTIMEZONEs[options.timeZone];
|
||||
options.timeZone = undefined;
|
||||
return date.format(options);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue