Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

fix: fix months discrimination #560

Merged
merged 1 commit into from
May 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function dto(LifeMetric $lifeMetric, int $year, Contact $contact):
$maxNumberOfEvents = $eventsCounter;
}

$date = CarbonImmutable::now()->month($month)->day(1);
$date = CarbonImmutable::now()->day(1)->month($month);
$eventsInMonthCollection->push([
'id' => $month,
'friendly_name' => DateHelper::formatMonthNumber($date),
Expand Down