We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e1da7 commit 8158d06Copy full SHA for 8158d06
dashboard/lib/analytics.worker.ts
@@ -391,9 +391,10 @@ self.onmessage = (e: MessageEvent<ComputeMessage | ParseAndStoreMessage>) => {
391
for (const row of dayFilteredData) {
392
const ts = row.timestamp;
393
if (!ts) continue;
394
+ const tsDate = new Date(ts);
395
const key = bucketFormat === 'hour'
- ? `${ts.toISOString().split('T')[0]} ${ts.getHours()}`
396
- : ts.toISOString().split('T')[0];
+ ? `${tsDate.toISOString().split('T')[0]} ${tsDate.getHours()}`
397
+ : tsDate.toISOString().split('T')[0];
398
reqBuckets.set(key, (reqBuckets.get(key) ?? 0) + 1);
399
userBuckets.set(key, (userBuckets.get(key) ?? 0) + 1);
400
const uid = getUserId(row.ipAddress, row.userAgent);
0 commit comments