diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-07 22:42:47 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-07 22:42:47 -0800 |
commit | 8d9094fef58a86545a713c7cf23b2f4a598945b8 (patch) | |
tree | d36b1291a5084d4951edeac7f0d72974e559248f /modern | |
parent | 09969cd35abf839ccc8c910db04db80da0ba5f07 (diff) | |
download | trackermap-web-8d9094fef58a86545a713c7cf23b2f4a598945b8.tar.gz trackermap-web-8d9094fef58a86545a713c7cf23b2f4a598945b8.tar.bz2 trackermap-web-8d9094fef58a86545a713c7cf23b2f4a598945b8.zip |
Rename event time field
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/common/formatter.js | 1 | ||||
-rw-r--r-- | modern/src/reports/EventReportPage.js | 2 |
2 files changed, 2 insertions, 1 deletions
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 = () => { <TableBody> {items.map(item => ( <TableRow key={item.id}> - <TableCell>{formatPosition(item, 'serverTime')}</TableCell> + <TableCell>{formatPosition(item, 'eventTime')}</TableCell> <TableCell>{item.type}</TableCell> <TableCell>{}</TableCell> <TableCell>{}</TableCell> |