📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Remove unused secondsTillNextMonth
Blue Mousee84049442472
diff --git a/web/app/utils/generic.ts b/web/app/utils/generic.tsindex 14a53b11b..84ebe93c5 100644--- a/web/app/utils/generic.ts+++ b/web/app/utils/generic.ts@@ -53,17 +53,6 @@ export const nFormatterSeparated = (num: any, digits = 1) => {return [0, null]}-export const secondsTillNextMonth = () => {- const now: any = new Date()- const date: any = new Date()-- date.setMonth(date.getMonth() + 1)- date.setDate(1)- date.setHours(0, 0, 0, 0)-- return 0 | ((date - now) / 1000)-}-type Time = {h: numberm: number