Commit 5975c6b6 by Azhan Hannan

fixing strtotime timesheet -> issue timesheet submission

parent 7e86c8ce
...@@ -1871,7 +1871,10 @@ class DashboardController extends Controller ...@@ -1871,7 +1871,10 @@ class DashboardController extends Controller
$submissiondate = date("Y-n-j"); $submissiondate = date("Y-n-j");
if ($submissiondate > $tm_date) { $checkdatetmdate = strtotime($tm_date);
$checkdatesubmit = strtotime($submissiondate);
if ($checkdatesubmit > $checkdatetmdate) {
} else { } else {
return redirect()->route('timesheet::form.filterChargeable')->withWarning('You have not pass the submission day yet. Please check your month and phase before you submit'); return redirect()->route('timesheet::form.filterChargeable')->withWarning('You have not pass the submission day yet. Please check your month and phase before you submit');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment