Skip to content

Commit

Permalink
fix: Ioutput dates as ISO 8601 strings in JSON Formatter (#313)
Browse files Browse the repository at this point in the history
kudos to @jacobbaskin
  • Loading branch information
jacobbaskin authored and RomanHotsiy committed Aug 1, 2017
1 parent da9df29 commit 86d8179
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils/JsonFormatterPipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 86d8179

Please sign in to comment.