Turn dates into date-times.

This commit is contained in:
James Cole
2021-04-01 21:06:40 +02:00
parent e221d37d2b
commit b893651223
3 changed files with 6 additions and 6 deletions

View File

@@ -90,8 +90,8 @@ class PiggyBankTransformer extends AbstractTransformer
// left to save:
$leftToSave = bcsub($piggyBank->targetamount, $currentAmountStr);
$startDate = null === $piggyBank->startdate ? null : $piggyBank->startdate->format('Y-m-d');
$targetDate = null === $piggyBank->targetdate ? null : $piggyBank->targetdate->format('Y-m-d');
$startDate = null === $piggyBank->startdate ? null : $piggyBank->startdate->toAtomString();
$targetDate = null === $piggyBank->targetdate ? null : $piggyBank->targetdate->toAtomString();
// target and percentage:
$targetAmount = $piggyBank->targetamount;