From d48a602a8058ae19d92e122428cf7d293700fdee Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 9 Aug 2010 17:52:08 -0400 Subject: [PATCH] There might be 53 weeks in the (ISO-8601) year. --- framework/Date/lib/Horde/Date/Recurrence.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Date/lib/Horde/Date/Recurrence.php b/framework/Date/lib/Horde/Date/Recurrence.php index 86476e3a1..5bc287497 100644 --- a/framework/Date/lib/Horde/Date/Recurrence.php +++ b/framework/Date/lib/Horde/Date/Recurrence.php @@ -391,7 +391,7 @@ class Horde_Date_Recurrence $week = $after->format('W'); if ($week == 1 && $after->month == 12) { $theYear = $after->year + 1; - } elseif ($week == 52 && $after->month == 1) { + } elseif ($week >= 52 && $after->month == 1) { $theYear = $after->year - 1; } else { $theYear = $after->year; -- 2.11.0