getBegin()) { $timesheet->setBegin(new DateTime('now', $this->getTimezone($timesheet))); } $this->rounding->roundBegin($timesheet); if (!$timesheet->isRunning()) { $this->rounding->roundEnd($timesheet); if (null !== $timesheet->getDuration()) { $this->rounding->roundDuration($timesheet); } } } }