forked from Mirrors/gomuks
web/timeline: fix date comparison for day separators
This commit is contained in:
parent
d22077a211
commit
6bbc51d285
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ const TimelineEvent = ({ evt, prevEvt, disableMenu }: TimelineEventProps) => {
|
|||
let dateSeparator = null
|
||||
const prevEvtDate = prevEvt ? new Date(prevEvt.timestamp) : null
|
||||
if (prevEvtDate && (
|
||||
eventTS.getDay() !== prevEvtDate.getDay() ||
|
||||
eventTS.getDate() !== prevEvtDate.getDate() ||
|
||||
eventTS.getMonth() !== prevEvtDate.getMonth() ||
|
||||
eventTS.getFullYear() !== prevEvtDate.getFullYear())) {
|
||||
dateSeparator = <div className="date-separator">
|
||||
|
|
Loading…
Add table
Reference in a new issue