diff --git a/packages/core/src/Base/Traits/HasCustomerGroups.php b/packages/core/src/Base/Traits/HasCustomerGroups.php index 0fd43e1eef..02d899cb22 100644 --- a/packages/core/src/Base/Traits/HasCustomerGroups.php +++ b/packages/core/src/Base/Traits/HasCustomerGroups.php @@ -141,11 +141,11 @@ public function scopeCustomerGroup($query, CustomerGroupContract|iterable|null $ } if (! $startsAt) { - $startsAt = now(); + $startsAt = now()->toDateTime(); } if (! $endsAt) { - $endsAt = now()->addSecond(); + $endsAt = now()->addSecond()->toDateTime(); } return $this->applyCustomerGroupScope($query, $groupIds, $startsAt, $endsAt);