@terraware/web-components 2.13.1-rc.1 → 2.13.1-rc.3
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/package.json
CHANGED
package/utils/date.js
CHANGED
@@ -71,8 +71,8 @@ var getDate = function getDate(date, timeZoneId) {
|
|
71
71
|
return fromMillis;
|
72
72
|
}
|
73
73
|
}
|
74
|
-
if (_lodash.default.isDate(date)) {
|
75
|
-
return _luxon.DateTime.fromJSDate(date, {
|
74
|
+
if (_lodash.default.isDate(date) || typeof date === 'string' || typeof date === 'number') {
|
75
|
+
return _luxon.DateTime.fromJSDate(new Date(date), {
|
76
76
|
zone: tz(timeZoneId)
|
77
77
|
});
|
78
78
|
}
|