Fixes dumb timestamp if the user manually removes date
This commit is contained in:
parent
895fbb76bf
commit
93e7715c28
1 changed files with 3 additions and 3 deletions
|
@ -446,8 +446,8 @@ class AssetsController extends Controller
|
|||
$user = User::find(e(Input::get('assigned_to')));
|
||||
$admin = Auth::user();
|
||||
|
||||
if (Input::get('checkout_at')!= date("Y-m-d")) {
|
||||
$checkout_at = e(Input::get('checkout_at')).' 00:00:00';
|
||||
if ((Input::has('checkout_at')) && (Input::get('checkout_at')!= date("Y-m-d"))) {
|
||||
$checkout_at = e(Input::get('checkout_at'));
|
||||
} else {
|
||||
$checkout_at = date("Y-m-d H:i:s");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue