summaryrefslogtreecommitdiff
path: root/src/components/ScanView.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ScanView.js')
-rw-r--r--src/components/ScanView.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/ScanView.js b/src/components/ScanView.js
index aefd287..9fe57d7 100644
--- a/src/components/ScanView.js
+++ b/src/components/ScanView.js
@@ -39,7 +39,12 @@ class ScanView extends React.Component {
`Unexpected status from soc_collector: ${json.status}`
);
this.setState({
- object: json.docs
+ object: {
+ ...json.docs,
+ timestamp_in_utc: new Date(
+ json.docs.timestamp_in_utc.replace(/ UTC$/, "Z")
+ )
+ }
});
})
.catch(e => this.props.setError(e));