Skip to content

Commit

Permalink
Do not use deprecated strftime() function
Browse files Browse the repository at this point in the history
Deprecated: Function strftime() is deprecated
  • Loading branch information
meritoo committed Nov 16, 2024
1 parent d51db09 commit 01c7709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public static function getDayOfWeekName(int $year, int $month, int $day): string
$second = 0;

$time = mktime($hour, $minute, $second, $month, $day, $year);
$name = strftime('%A', $time);
$name = \date('l', $time);

$encoding = mb_detect_encoding($name);

Expand Down

0 comments on commit 01c7709

Please sign in to comment.