Skip to content

Commit 2c8ce40

Browse files
authored
Fixed startDate - only date, no time
Fixed startDate to only take the date portion from API response, and ignore the time.
1 parent 2107b94 commit 2c8ce40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/net/authorize/api/contract/v1/PaymentScheduleType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public function getStartDate()
7373
*/
7474
public function setStartDate(\DateTime $startDate)
7575
{
76-
$this->startDate = $startDate;
76+
$strDateOnly = $startDate->format('Y-m-d');
77+
$this->startDate = \DateTime::createFromFormat('!Y-m-d', $strDateOnly);
7778
return $this;
7879
}
7980

0 commit comments

Comments
 (0)