From a663e71ab875f40bcf7ae06f0a6069da4bf069df Mon Sep 17 00:00:00 2001 From: Mahdi Date: Fri, 3 May 2019 11:02:43 +0800 Subject: [PATCH] Fix for time rounding --- src/javascript/app_2/Stores/Modules/Trading/Helpers/end-time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javascript/app_2/Stores/Modules/Trading/Helpers/end-time.js b/src/javascript/app_2/Stores/Modules/Trading/Helpers/end-time.js index 99a28e3b2f82e..ce479a4a23966 100644 --- a/src/javascript/app_2/Stores/Modules/Trading/Helpers/end-time.js +++ b/src/javascript/app_2/Stores/Modules/Trading/Helpers/end-time.js @@ -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,