Skip to content

📈 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!

fixed downward spikes

Blue Mouse6b465e1d034d
diff --git a/src/analytics/analytics.service.ts b/src/analytics/analytics.service.ts
index 97df94b07..048936c74 100644
--- a/src/analytics/analytics.service.ts
+++ b/src/analytics/analytics.service.ts
@@ -900,7 +900,7 @@ export class AnalyticsService {
let dateString = `${year}-${month < 10 ? `0${month}` : month}`
- if (day) {
+ if (typeof day === 'number') {
if (day < 10) {
dateString += `-0${day}`
} else {
@@ -908,7 +908,7 @@ export class AnalyticsService {
}
}
- if (hour) {
+ if (typeof hour === 'number') {
if (hour < 10) {
dateString += ` 0${hour}:00:00`
} else {