Skip to content

Commit 89691de

Browse files
authored
Merge pull request #311 from khaaldrogo/fix-datetime-travis
Fix startDate to only show the date part in ARBSubscriptionResponse
2 parents ce80382 + e82f8a8 commit 89691de

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ before_script:
2828
script:
2929
# execute all of the tests or other commands to determine
3030
# whether the build will pass or fail
31-
- if [[ "$TEST_SUITE" == "samples" ]]; then phpenv config-rm xdebug.ini; cp -R lib sample-code-php/; cp -R vendor sample-code-php/; cd sample-code-php; vendor/phpunit/phpunit/phpunit test-runner.php .; cat testslog; fi
31+
- if [[ "$TEST_SUITE" == "samples" ]]; then phpenv config-rm xdebug.ini; cp -R lib sample-code-php/; cp -R vendor sample-code-php/; cd sample-code-php; vendor/phpunit/phpunit/phpunit test-runner.php .; fi
3232

3333
after_script:
3434
# - if [[ "$TEST_SUITE" == "coverage" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi

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)