Skip to content

Commit

Permalink
fix: fix months discrimination (monicahq/chandler#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed May 31, 2023
1 parent c3605ba commit 1c8e84e
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 1c8e84e

Please sign in to comment.