mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Add startofday
This commit is contained in:
		| @@ -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) )); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user