Browse Source

Comment.

pull/20/head
James Cole 4 years ago
parent
commit
499a342640
No known key found for this signature in database GPG Key ID: BDE6667570EADBD5
  1. 2
      app/Services/Shared/Configuration/Configuration.php

2
app/Services/Shared/Configuration/Configuration.php

@ -194,7 +194,7 @@ class Configuration
$object->dateRangeNumber = $array['date_range_number'] ?? 30;
$object->dateRangeUnit = $array['date_range_unit'] ?? 'd';
// null or Carbon
// null or Carbon because fromRequest will give Carbon object.
$object->dateNotBefore = null === $array['date_not_before'] ? '' : $array['date_not_before']->format('Y-m-d');
$object->dateNotAfter = null === $array['date_not_after'] ? '' : $array['date_not_before']->format('Y-m-d');

Loading…
Cancel
Save