diff --git a/app/Transformers/V2/TransactionGroupTransformer.php b/app/Transformers/V2/TransactionGroupTransformer.php index 86aba03780..20b88d7485 100644 --- a/app/Transformers/V2/TransactionGroupTransformer.php +++ b/app/Transformers/V2/TransactionGroupTransformer.php @@ -31,6 +31,7 @@ use FireflyIII\Models\TransactionType; use FireflyIII\Support\Http\Api\ConvertsExchangeRates; use FireflyIII\Support\NullArrayObject; use Illuminate\Support\Collection; +use Illuminate\Support\Facades\Log; /** * Class TransactionGroupTransformer @@ -261,6 +262,10 @@ class TransactionGroupTransformer extends AbstractTransformer if (null === $string) { return null; } - return Carbon::createFromFormat('Y-m-d', $string); + Log::debug(sprintf('Now in date("%s")', $string)); + if(10 === strlen($string)) { + return Carbon::createFromFormat('Y-m-d', $string, config('app.timezone')); + } + return Carbon::createFromFormat('Y-m-d H:i:s', $string, config('app.timezone')); } } diff --git a/frontend/src/components/dashboard/BudgetBox.vue b/frontend/src/components/dashboard/BudgetBox.vue index 7ea813ccdf..9be3af1705 100644 --- a/frontend/src/components/dashboard/BudgetBox.vue +++ b/frontend/src/components/dashboard/BudgetBox.vue @@ -41,9 +41,9 @@
Thanks again,