esoftplay 0.0.173 → 0.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/moment.ts +2 -2
- package/package.json +1 -1
package/moment.ts
CHANGED
|
@@ -37,7 +37,7 @@ function parseGMTOffset(gmtString) {
|
|
|
37
37
|
const match = gmtString.match(regex);
|
|
38
38
|
|
|
39
39
|
if (!match) {
|
|
40
|
-
|
|
40
|
+
return null
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
const sign = match[1] === '+' ? 1 : -1;
|
|
@@ -130,7 +130,7 @@ export default function moment(date?: string | Date | any) {
|
|
|
130
130
|
const out = dayjs(_d).format(custom)
|
|
131
131
|
return out
|
|
132
132
|
},
|
|
133
|
-
serverFormat: (custom: string, timezone
|
|
133
|
+
serverFormat: (custom: string, timezone?: string) => {
|
|
134
134
|
const currentLang = esp.modProp('lib/locale').default.state().get()
|
|
135
135
|
const localeId = langData?.filter?.((x) => x.name == currentLang)?.[0]?.code
|
|
136
136
|
moment().locale(localeId)
|