mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 04:41:01 +00:00
Turn dates into date-times.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user