From 2207ebc4f1ac65a5c17ea58310e7bda36507edf0 Mon Sep 17 00:00:00 2001 From: flack Date: Thu, 1 Aug 2024 18:11:40 +0200 Subject: [PATCH] Try another variant to fix tz discrepancies, refs #210 --- lib/org/openpsa/sales/salesproject/deliverable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/org/openpsa/sales/salesproject/deliverable.php b/lib/org/openpsa/sales/salesproject/deliverable.php index def987d1b..1b4b107af 100644 --- a/lib/org/openpsa/sales/salesproject/deliverable.php +++ b/lib/org/openpsa/sales/salesproject/deliverable.php @@ -211,7 +211,8 @@ public function run_cycle() : bool public function get_cycle_identifier(int $time) : string { - $date = new DateTime('@' . $time, new DateTimeZone(date_default_timezone_get())); + $date = new DateTime('@' . $time); + $date->setTimezone(new DateTimeZone(date_default_timezone_get())); switch ($this->unit) { case 'm':