We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 854c7ea commit d9878b4Copy full SHA for d9878b4
classtime.js
@@ -397,7 +397,11 @@ function getCurrentScheduleIndex() {
397
* @param {*} time2
398
* @returns -1 if time1 is before time2, 0 if they are the same, 1 if time1 is after time2
399
*/
400
-function compareTimes( time1, time2 ) {
+function compareTimes( timeObject1, timeObject2 ) {
401
+
402
+ let time1 = sanitizeTimeObject(timeObject1)
403
+ let time2 = sanitizeTimeObject(timeObject2)
404
405
406
let hoursDiff = time1.hours - time2.hours;
407
let minutesDiff = time1.minutes - time2.minutes;
0 commit comments