Skip to content

Commit

Permalink
Try another variant to fix tz discrepancies, refs #210
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Aug 1, 2024
1 parent 3c26bee commit 2207ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/org/openpsa/sales/salesproject/deliverable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 2207ebc

Please sign in to comment.