Skip to content

Commit 1c8e84e

Browse files
authored
fix: fix months discrimination (monicahq/chandler#560)
1 parent c3605ba commit 1c8e84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Domains/Vault/ManageLifeMetrics/Web/ViewHelpers/VaultLifeMetricsViewHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static function dto(LifeMetric $lifeMetric, int $year, Contact $contact):
5959
$maxNumberOfEvents = $eventsCounter;
6060
}
6161

62-
$date = CarbonImmutable::now()->month($month)->day(1);
62+
$date = CarbonImmutable::now()->day(1)->month($month);
6363
$eventsInMonthCollection->push([
6464
'id' => $month,
6565
'friendly_name' => DateHelper::formatMonthNumber($date),

0 commit comments

Comments
 (0)