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
parent
b375515cc0
commit
ae5e30d479
|
@ -325,7 +325,7 @@ class LogsPage extends PureComponent<Props, State> {
|
||||||
let upper = null
|
let upper = null
|
||||||
|
|
||||||
if (timeOption !== 'now') {
|
if (timeOption !== 'now') {
|
||||||
const numberTimeOption = moment(timeOption).valueOf()
|
const numberTimeOption = new Date(timeOption).valueOf()
|
||||||
const milliseconds = seconds * 10 / 2
|
const milliseconds = seconds * 10 / 2
|
||||||
lower = moment(numberTimeOption - milliseconds).toISOString()
|
lower = moment(numberTimeOption - milliseconds).toISOString()
|
||||||
upper = moment(numberTimeOption + milliseconds).toISOString()
|
upper = moment(numberTimeOption + milliseconds).toISOString()
|
||||||
|
|
Loading…
Reference in New Issue