Allow punch out time to be null - fix for mysql strict date mode

This commit is contained in:
gamonoid
2017-10-03 08:17:58 +02:00
parent 45ea7e0f0d
commit 79ecf9cd6a
3 changed files with 24 additions and 1 deletions

View File

@@ -135,7 +135,6 @@ class AttendanceActionManager extends SubActionManager
$this->baseService->audit(IceConstants::AUDIT_ACTION, "Punch Out \ time:".$openPunch->out_time);
} else {
$openPunch->in_time = $dateTime;
$openPunch->out_time = '0000-00-00 00:00:00';
$openPunch->note = $req->note;
$openPunch->image_in = $req->image;
$openPunch->employee = $employee->id;