diff --git a/lib/utils/JsonFormatterPipe.ts b/lib/utils/JsonFormatterPipe.ts index 8de93236a1..af821d22db 100644 --- a/lib/utils/JsonFormatterPipe.ts +++ b/lib/utils/JsonFormatterPipe.ts @@ -35,6 +35,8 @@ function valueToHTML(value) { level++; output += arrayToHTML(value); level--; + } else if (value && value.constructor === Date) { + output += decorateWithSpan('"' + value.toISOString() + '"', 'type-string'); } else if (valueType === 'object') { level++; output += objectToHTML(value);