mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Replace direct calls to Carbon class.
This commit is contained in:
		| @@ -350,13 +350,13 @@ class BasicController extends Controller | ||||
|     { | ||||
|         /** @var User $user */ | ||||
|         $user = auth()->user(); | ||||
|         $date = Carbon::now()->startOfDay(); | ||||
|         $date = today(config('app.timezone'))->startOfDay(); | ||||
|         // start and end in the future? use $end | ||||
|         if ($this->notInDateRange($date, $start, $end)) { | ||||
|             /** @var Carbon $date */ | ||||
|             $date = session('end', Carbon::now()->endOfMonth()); | ||||
|             $date = session('end', today(config('app.timezone'))->endOfMonth()); | ||||
|         } | ||||
|  | ||||
|          | ||||
|         /** @var NetWorthInterface $netWorthHelper */ | ||||
|         $netWorthHelper = app(NetWorthInterface::class); | ||||
|         $netWorthHelper->setUser($user); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user