From 91c44ceddfdf49c02e1c1eca1f5bc6d8296bb968 Mon Sep 17 00:00:00 2001 From: k0walski <2618150-k0walski@users.noreply.gitlab.com> Date: Mon, 3 Nov 2025 15:33:10 +0200 Subject: [PATCH] Replace instance->format('c') ); with $first_of_year->format('c') ); call --- inc/RRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/RRule.php b/inc/RRule.php index 9e058bad..0e4a9661 100644 --- a/inc/RRule.php +++ b/inc/RRule.php @@ -1011,7 +1011,7 @@ class RepeatRule { $dow = self::rrule_day_number($matches[3]); $first_doy = 1 + $dow - $dow_of_first; if ( $first_doy < 1 ) $first_doy +=7; // e.g. 1st=WE, dow=MO => 1+1-3=-1 => MO is 6th, etc. $whichweek = intval($matches[2]); - if ( DEBUG_RRULE ) dbg_error_log( 'RRULE', "Expanding BYDAY(Y) $weekday from date %s", $instance->format('c') ); + if ( DEBUG_RRULE ) dbg_error_log( 'RRULE', "Expanding BYDAY(Y) $weekday from date %s", $first_of_year->format('c') ); if ( $whichweek > 0 ) { $whichweek--; $yearday = $first_doy;