From 8d9094fef58a86545a713c7cf23b2f4a598945b8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 7 Mar 2021 22:42:47 -0800 Subject: Rename event time field --- modern/src/common/formatter.js | 1 + modern/src/reports/EventReportPage.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'modern') diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js index e41e591e..289a6d94 100644 --- a/modern/src/common/formatter.js +++ b/modern/src/common/formatter.js @@ -9,6 +9,7 @@ export const formatPosition = (value, key) => { case 'fixTime': case 'deviceTime': case 'serverTime': + case 'eventTime': return moment(value).format('LLL'); case 'latitude': case 'longitude': diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index 054181d0..459383e9 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -74,7 +74,7 @@ const EventReportPage = () => { {items.map(item => ( - {formatPosition(item, 'serverTime')} + {formatPosition(item, 'eventTime')} {item.type} {} {} -- cgit v1.2.3