diff --git a/ui/src/logs/containers/LogsPage.tsx b/ui/src/logs/containers/LogsPage.tsx index 0fdf42a9d5..ae509a2b09 100644 --- a/ui/src/logs/containers/LogsPage.tsx +++ b/ui/src/logs/containers/LogsPage.tsx @@ -325,7 +325,7 @@ class LogsPage extends PureComponent { 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()