swr events refactor

This commit is contained in:
Blake Blackshear
2022-03-11 07:49:06 -06:00
parent 4bae3993da
commit 1c9ba11e07
76 changed files with 29753 additions and 9109 deletions
+2 -2
View File
@@ -5,11 +5,11 @@ export const dateToLong = (date: Date): number => epochToLong(date.getTime());
const getDateTimeYesterday = (dateTime: Date): Date => {
const twentyFourHoursInMilliseconds = 24 * 60 * 60 * 1000;
return new Date(dateTime.getTime() - twentyFourHoursInMilliseconds);
}
};
const getNowYesterday = (): Date => {
return getDateTimeYesterday(new Date());
}
};
export const getNowYesterdayInLong = (): number => {
return dateToLong(getNowYesterday());