projects
/
rainny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e75841
)
Fix bug
author
Ajay Bura
<ajbura@gmail.com>
Thu, 9 Dec 2021 13:31:39 +0000
(19:01 +0530)
committer
Ajay Bura
<ajbura@gmail.com>
Thu, 9 Dec 2021 13:31:39 +0000
(19:01 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/util/common.js
patch
|
blob
|
history
diff --git
a/src/util/common.js
b/src/util/common.js
index d7f4c36500265458a8265143599584a2f784f588..c3745838227f08e5a60bf871864ab53f61a7a053 100644
(file)
--- a/
src/util/common.js
+++ b/
src/util/common.js
@@
-14,7
+14,11
@@
export function diffMinutes(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) {