From: Michael J. Rubinsky Date: Mon, 9 Aug 2010 21:52:08 +0000 (-0400) Subject: There might be 53 weeks in the (ISO-8601) year. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d48a602a8058ae19d92e122428cf7d293700fdee;p=horde.git There might be 53 weeks in the (ISO-8601) year. --- 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;