From ce7df9f2625744b6a2b152d08d6317eb491ff20d Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 8 Jun 2015 11:33:00 +0200 Subject: [PATCH] date_date_week_range_and_date_iso_week_range_both_returns_1_day_too_much-1137062-17 --- date_api/date_api.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/date_api/date_api.module b/date_api/date_api.module index 2a973cc..abd6d39 100644 --- a/date_api/date_api.module +++ b/date_api/date_api.module @@ -2050,7 +2050,7 @@ function date_week_range($week, $year) { // Move forwards to the last day of the week. $max_date = clone($min_date); - date_modify($max_date, '+6 days'); + date_modify($max_date, '+6 days +23 hours +59 minutes +59 seconds'); if (date_format($min_date, 'Y') != $year) { $min_date = new DateObject($year . '-01-01 00:00:00'); @@ -2084,7 +2084,7 @@ function date_iso_week_range($week, $year) { // Move forwards to the last day of the week. $max_date = clone($min_date); - date_modify($max_date, '+6 days'); + date_modify($max_date, '+6 days +23 hours +59 minutes +59 seconds'); return array($min_date, $max_date); } -- 2.3.2 (Apple Git-55)