Compare commits

...

3 Commits

2 changed files with 5 additions and 5 deletions

View File

@ -1125,7 +1125,7 @@ class TicketController extends Controller
if ($type == 'S') {
$end = $date->copy()->setTime(11, 30, 0);
} else if ($type == 'C') {
$start = $date->copy()->setTime(11, 30, 0);
$start = $date->copy()->setTime(13, 0, 0);
}
Tracking::insert([
@ -1134,14 +1134,14 @@ class TicketController extends Controller
'user_id' => $user->id,
'status' => 'check in',
'time_string' => $start->format('Y-m-d H:i:s'),
'created_at' => $start->setTimezone('UTC')
'created_at' => $start->setTimezone(env('TIME_ZONE'))
],
[
'name' => $user->name,
'user_id' => $user->id,
'status' => 'check out',
'time_string' => $end->format('Y-m-d H:i:s'),
'created_at' => $end->setTimezone('UTC')
'created_at' => $end->setTimezone(env('TIME_ZONE'))
]
]);
//WFH - end tracking

View File

@ -78,14 +78,14 @@ class TimekeepingController extends Controller
'user_id' => $user->id,
'status' => 'check in',
'time_string' => $start->format('Y-m-d H:i:s'),
'created_at' => $start->setTimezone('UTC')
'created_at' => $start->setTimezone(env('TIME_ZONE'))
],
[
'name' => $user->name,
'user_id' => $user->id,
'status' => 'check out',
'time_string' => $end->format('Y-m-d H:i:s'),
'created_at' => $end->setTimezone('UTC')
'created_at' => $end->setTimezone(env('TIME_ZONE'))
]
]);
}