Use vanilla date instead of moment to avoid warning

Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
Co-authored-by: Daniel Campbell <metalwhirlwind@gmail.com>
pull/10616/head
Alex P 2018-07-11 17:33:28 -07:00
parent b375515cc0
commit ae5e30d479
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ class LogsPage extends PureComponent<Props, State> {
let upper = null
if (timeOption !== 'now') {
const numberTimeOption = moment(timeOption).valueOf()
const numberTimeOption = new Date(timeOption).valueOf()
const milliseconds = seconds * 10 / 2
lower = moment(numberTimeOption - milliseconds).toISOString()
upper = moment(numberTimeOption + milliseconds).toISOString()