Skip to content

Commit

Permalink
Fix for time rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
msamprz committed May 3, 2019
1 parent eac1aab commit 73d0562
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const getClosestTime = (
time,
interval,
) => time.minute(Math.round(time.minute() / interval) * interval);
) => time.minute((Math.ceil(time.minute() / interval) * interval));

export const getSelectedTime = (
server_time,
Expand Down

0 comments on commit 73d0562

Please sign in to comment.