mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Change Intl.DateTimeFormat() into toLocaleString() for iOS < 14
This commit is contained in:
parent
508c262a4b
commit
a83cb9150e
2 changed files with 3 additions and 8 deletions
|
|
@ -135,7 +135,7 @@ export const
|
|||
timeToNode = (element, time) => {
|
||||
try {
|
||||
if (time) {
|
||||
element.dateTime = (new Date(time * 1000)).format('ISO8601');
|
||||
element.dateTime = new Date(time * 1000).toISOString();
|
||||
} else {
|
||||
time = Date.parse(element.dateTime) / 1000;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue