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

small fix for inferred parsing of iso8601 timestamps when formatting values.

parent 0c47feea
No related branches found
No related tags found
No related merge requests found
......@@ -86,8 +86,8 @@ 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, ["YYYY-MM-DD'T'HH:mm:ss.SSSZ"], true).isValid()) {
return moment(value).format("LLLL");
} else if (moment.isDate(value) || moment(value, ["YYYY-MM-DD'T'HH:mm:ss.SSSZ"]).isValid()) {
return moment.parseZone(value).format("LLLL");
} else if (typeof value === "string") {
return value;
} else if (typeof value === "number") {
......
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