Skip to content

Commit

Permalink
Fix for jira times
Browse files Browse the repository at this point in the history
  • Loading branch information
larowlan committed Sep 2, 2019
1 parent 62efad9 commit 34784b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connector/JiraConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function sendEntry($entry) {
$worklog = new Worklog();

$worklog->setComment($entry->comment)
->setStarted(date('Y-m-d h:m:s', $entry->start))
->setStartedDateTime((new \DateTime('now', new \DateTimeZone('UTC')))->setTimestamp($entry->getStart()))
->setTimeSpent(sprintf('%sh %sm', floor($entry->duration), ($entry->duration - floor($entry->duration)) * 60));
$ret = $this->issueService->addWorklog($entry->tid, $worklog);
return $ret->id;
Expand Down

0 comments on commit 34784b0

Please sign in to comment.