synced with master

This commit is contained in:
Gani Georgiev
2023-05-01 22:07:17 +03:00
35 changed files with 55 additions and 50 deletions
+2 -2
View File
@@ -692,8 +692,8 @@ export default class CommonHelper {
const formats = {
19: "yyyy-MM-dd HH:mm:ss",
23: "yyyy-MM-dd HH:mm:ss.SSS",
20: "yyyy-MM-dd HH:mm:ssZ",
24: "yyyy-MM-dd HH:mm:ss.SSSZ",
20: "yyyy-MM-dd HH:mm:ss'Z'",
24: "yyyy-MM-dd HH:mm:ss.SSS'Z'",
}
const format = formats[date.length] || formats[19];
return DateTime.fromFormat(date, format, { zone: 'UTC' });