summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Date/AbstractCalendarDate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Date/AbstractCalendarDate.php b/app/Date/AbstractCalendarDate.php
index 6cc3605571..3eddc7d1fb 100644
--- a/app/Date/AbstractCalendarDate.php
+++ b/app/Date/AbstractCalendarDate.php
@@ -637,10 +637,10 @@ abstract class AbstractCalendarDate
$format = strtr($format, ['%M' => $this->formatShortMonth()]);
}
if (str_contains($format, '%n')) {
- $format = strtr($format, [$this->formatMonth()]);
+ $format = strtr($format, ['%n' => $this->formatMonth()]);
}
if (str_contains($format, '%t')) {
- $format = strtr($format, ['%n' => (string) $this->daysInMonth()]);
+ $format = strtr($format, ['%t' => (string) $this->daysInMonth()]);
}
if (str_contains($format, '%L')) {
$format = strtr($format, ['%L' => $this->isLeapYear() ? '1' : '0']);