Skip to content

Commit

Permalink
Fix task time
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Oct 15, 2019
1 parent 16ebf6c commit 4da50b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/legacy/plugins/lens/server/usage/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,8 @@ export function telemetryTaskRunner(server: Server) {
}

function getNextMidnight() {
const nextMidnight = moment()
return moment()
.add(1, 'day')
.startOf('day')
.valueOf();
return nextMidnight;
.toDate();
}

0 comments on commit 4da50b3

Please sign in to comment.