Skip to content
Snippets Groups Projects
Commit 1c164b44 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #2044 from metabase/fix-over-eager-date-parsing

Fix over eager date parsing
parents 0311d013 18cb8048
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ export function formatValue(value, column, options = {}) {
return null
} else if (column && column.unit != null) {
return formatTimeWithUnit(value, column.unit, options);
} else if (moment.isDate(value) || moment(value, moment.ISO_8601).isValid()) {
} else if (moment.isDate(value) || moment(value, ["YYYY-MM-DD'T'HH:mm:ss.SSSZ"], true).isValid()) {
return moment(value).format("LLLL");
} else if (typeof value === "string") {
return value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment