Remove dead strftime() call in worker calendar form
The strftime() result was immediately overwritten by a hardcoded Hungarian month-name array. Drop the dead line so PHP 8.1+ stops emitting an E_DEPRECATED warning when prod loads the worker calendar. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
e8aa9084c1
commit
92a84aadb1
@@ -77,8 +77,6 @@
|
|||||||
$startOffset = ($startDow + 6) % 7;
|
$startOffset = ($startDow + 6) % 7;
|
||||||
|
|
||||||
$today = date('Y-m-d');
|
$today = date('Y-m-d');
|
||||||
$monthLabel = strftime('%Y %B', $firstDay); // Hungarian month names via locale
|
|
||||||
// Fallback: PHP intl not guaranteed; build own table
|
|
||||||
$monthNames = ['január','február','március','április','május','június','július','augusztus','szeptember','október','november','december'];
|
$monthNames = ['január','február','március','április','május','június','július','augusztus','szeptember','október','november','december'];
|
||||||
$monthLabel = $year . ' ' . $monthNames[$month - 1];
|
$monthLabel = $year . ' ' . $monthNames[$month - 1];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user