Show date for msgs older than a day
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
@@ -13,11 +13,11 @@ export function diffMinutes(dt2, dt1) {
|
||||
return Math.abs(Math.round(diff));
|
||||
}
|
||||
|
||||
export function isNotInSameDay(dt2, dt1) {
|
||||
export function isInSameDay(dt2, dt1) {
|
||||
return (
|
||||
dt2.getDay() !== dt1.getDay()
|
||||
|| dt2.getMonth() !== dt1.getMonth()
|
||||
|| dt2.getYear() !== dt1.getYear()
|
||||
dt2.getDay() === dt1.getDay()
|
||||
&& dt2.getMonth() === dt1.getMonth()
|
||||
&& dt2.getYear() === dt1.getYear()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user