query modified_after in UTC (#5743)

This commit is contained in:
Kevin Papst
2025-12-24 16:33:28 +01:00
committed by GitHub
parent 3fcaf55d02
commit 806bb97e60
4 changed files with 12 additions and 16 deletions

View File

@@ -36,7 +36,7 @@ class TimesheetQuery extends ActivityQuery implements BillableInterface, DateRan
private int $state = self::STATE_ALL;
private int $exported = self::STATE_ALL;
private ?int $maxResults = null;
private ?\DateTime $modifiedAfter = null;
private ?\DateTimeInterface $modifiedAfter = null;
/**
* @var array<Tag>
*/
@@ -244,15 +244,13 @@ class TimesheetQuery extends ActivityQuery implements BillableInterface, DateRan
$this->tags[$tag->getId()] = $tag;
}
public function getModifiedAfter(): ?\DateTime
public function getModifiedAfter(): ?\DateTimeInterface
{
return $this->modifiedAfter;
}
public function setModifiedAfter(\DateTime $modifiedAfter): TimesheetQuery
public function setModifiedAfter(\DateTimeInterface $modifiedAfter): void
{
$this->modifiedAfter = $modifiedAfter;
return $this;
}
}