mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Add startofday
This commit is contained in:
parent
3711cbd9d7
commit
6655d2e3d0
@ -149,8 +149,8 @@ class RecurrenceController extends Controller
|
||||
public function suggest(Request $request): JsonResponse
|
||||
{
|
||||
$string = $request->get('date') ?? date('Y-m-d');
|
||||
$today = new Carbon;
|
||||
$date = Carbon::createFromFormat('Y-m-d', $string);
|
||||
$today = Carbon::now()->startOfDay();
|
||||
$date = Carbon::createFromFormat('Y-m-d', $string)->startOfDay();;
|
||||
$preSelected = (string)$request->get('pre_select');
|
||||
|
||||
Log::debug(sprintf('date = %s, today = %s. date > today? %s', $date->toAtomString(), $today->toAtomString(), var_export($date > $today, true) ));
|
||||
|
Loading…
Reference in New Issue
Block a user