From a4ce8ab30ed3ac74595fba6ac8c5194e55db41ea Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 5 Mar 2021 11:29:12 +0100 Subject: [PATCH] (cp e86d552) fixes #1357 incorrect day due to timezone offset --- admin/intro.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/intro.php b/admin/intro.php index a35db94fc..36730976f 100644 --- a/admin/intro.php +++ b/admin/intro.php @@ -236,7 +236,8 @@ if (!isset($_SESSION['cache_activity_last_weeks']) or $_SESSION['cache_activity_ foreach ($activity_actions as $action) { - $day_date = new DateTime($action['activity_day']); + // set the time to 12:00 (midday) so that it doesn't goes to previous/next day due to timezone offset + $day_date = new DateTime($action['activity_day'].' 12:00:00'); $week = 0; for ($i=0; $i < $nb_weeks; $i++)