fixing date and stuff
This commit is contained in:
@@ -20,13 +20,13 @@ export function getTime(date?: Date) {
|
||||
|
||||
const today = new Date();
|
||||
|
||||
const yesterday = today;
|
||||
const yesterday = new Date();
|
||||
yesterday.setDate(yesterday.getDate() - 1);
|
||||
|
||||
const Days7Ago = today;
|
||||
const Days7Ago = new Date();
|
||||
Days7Ago.setDate(Days7Ago.getDate() - 7);
|
||||
|
||||
const earlierThisMonth = today;
|
||||
const earlierThisMonth = new Date();
|
||||
earlierThisMonth.setDate(earlierThisMonth.getDate() - 30);
|
||||
|
||||
export { today, yesterday, Days7Ago, earlierThisMonth };
|
||||
|
||||
@@ -31,6 +31,8 @@ export default function Conversations() {
|
||||
const relativeConvoSections = useRecoilValue(
|
||||
RelativeTimeSeparatedConvosSelector
|
||||
);
|
||||
|
||||
console.log(relativeConvoSections);
|
||||
const todayConvos = relativeConvoSections.get(
|
||||
RelativeTimeConvosSections.today
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user