Fix bug
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
3e75841a83
commit
9365e5bfb9
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,11 @@ export function diffMinutes(dt2, dt1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isInSameDay(dt2, dt1) {
|
export function isInSameDay(dt2, dt1) {
|
||||||
return (dt2.setHours(0, 0, 0, 0) === dt1.setHours(0, 0, 0, 0));
|
return (
|
||||||
|
dt2.getFullYear() === dt1.getFullYear()
|
||||||
|
&& dt2.getMonth() === dt1.getMonth()
|
||||||
|
&& dt2.getDate() === dt1.getDate()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getEventCords(ev) {
|
export function getEventCords(ev) {
|
||||||
|
|
Loading…
Reference in a new issue