Skip to content

Commit 19b0a66

Browse files
committed
Stats fix
1 parent 46c2c8b commit 19b0a66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Web/Analytics/VisitsPerDay/VisitsPerDayProjector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function onPageVisited(PageVisited $pageVisited): void
3434
$visitedAt = $pageVisited->visitedAt->setTime(0, 0);
3535

3636
$day = VisitsPerDay::query()
37-
->whereField('date', $visitedAt)
37+
->whereField('date', $visitedAt->format('Y-m-d H:i:s'))
3838
->first();
3939

4040
if (! $day) {

src/Web/Analytics/VisitsPerHour/VisitsPerHourProjector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function onPageVisited(PageVisited $pageVisited): void
3737
);
3838

3939
$day = VisitsPerHour::query()
40-
->whereField('date', $visitedAt->format(DATE_ATOM))
40+
->whereField('date', $visitedAt->format('Y-m-d H:i:s'))
4141
->first();
4242

4343
if (! $day) {

0 commit comments

Comments
 (0)