fix calendar popup

This commit is contained in:
Dobromir Popov
2024-04-14 02:22:27 +03:00
parent e09d960b0f
commit 4fb8022c46
5 changed files with 70 additions and 113 deletions

View File

@ -329,7 +329,11 @@ exports.getWeekNumber = function (date) {
return Math.ceil((date.getDate() - info.firstMonday.getDate() + 1) / 7);
};
exports.compareTimes = function (time1, time2) {
const time1String = `${getHours(time1)}:${getMinutes(time1)}`;
const time2String = `${getHours(time2)}:${getMinutes(time2)}`;
return time1String.localeCompare(time2String);
};
exports.getTimeRange = function (start, end) {
start = new Date(start);