@malloydata/malloy 0.0.179-dev240904021440 → 0.0.179-dev240904142610
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/dist/malloy.js +4 -1
- package/package.json +1 -1
package/dist/malloy.js
CHANGED
|
@@ -2600,7 +2600,10 @@ function valueToDate(value) {
|
|
|
2600
2600
|
// which represents the same instant in time, but we don't have the data
|
|
2601
2601
|
// flow to implement that. This may be a problem at some future day,
|
|
2602
2602
|
// so here is a comment, for that day.
|
|
2603
|
-
|
|
2603
|
+
let parsed = luxon_1.DateTime.fromISO(value, { zone: 'UTC' });
|
|
2604
|
+
if (!parsed.isValid) {
|
|
2605
|
+
parsed = luxon_1.DateTime.fromSQL(value, { zone: 'UTC' });
|
|
2606
|
+
}
|
|
2604
2607
|
return parsed.toJSDate();
|
|
2605
2608
|
}
|
|
2606
2609
|
}
|