From 92a84aadb1dd14854ed8bb3568f895d72dd38a80 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 11 May 2026 11:41:47 +0000 Subject: [PATCH] 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 --- application/views/admin/includes/worker-calendar-form.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/application/views/admin/includes/worker-calendar-form.php b/application/views/admin/includes/worker-calendar-form.php index 2dda445..da4a427 100755 --- a/application/views/admin/includes/worker-calendar-form.php +++ b/application/views/admin/includes/worker-calendar-form.php @@ -77,8 +77,6 @@ $startOffset = ($startDow + 6) % 7; $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']; $monthLabel = $year . ' ' . $monthNames[$month - 1];