Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix

Marc Seitzb79d0875f005
diff --git a/pages/api/analytics/index.ts b/pages/api/analytics/index.ts
index 30bb45a7..87cc8ea0 100644
--- a/pages/api/analytics/index.ts
+++ b/pages/api/analytics/index.ts
@@ -58,7 +58,7 @@ export default async function handler(
case "24h":
// Get start of the hour 24 hours ago
startDate = new Date(now);
- startDate.setHours(startDate.getHours() - 24);
+ startDate.setHours(startDate.getHours() - 23);
startDate.setMinutes(0, 0, 0);
break;
case "7d":