Login Details Time Format in Indian Format
Showing
1 changed file
with
4 additions
and
2 deletions
| ... | @@ -1018,8 +1018,10 @@ public function show($id) | ... | @@ -1018,8 +1018,10 @@ public function show($id) |
| 1018 | $user_login_datetime= UserLog::where('user_id', $userlogin_id)->orderBy('id', 'desc')->skip(1)->take(1)->get(); | 1018 | $user_login_datetime= UserLog::where('user_id', $userlogin_id)->orderBy('id', 'desc')->skip(1)->take(1)->get(); |
| 1019 | 1019 | ||
| 1020 | foreach ($user_login_datetime as $user_login_datetime_key => $user_login_datetime_val) | 1020 | foreach ($user_login_datetime as $user_login_datetime_key => $user_login_datetime_val) |
| 1021 | { | 1021 | { |
| 1022 | $data.="<h5 align='right'><span class='glyphicon glyphicon-user'></span>Last Login Details :$user_login_datetime_val->updated_at</h5><br>"; | 1022 | $last_login_details=date('Y-m-d H:i:s',strtotime('+5 hour +30 minutes',strtotime($user_login_datetime_val->updated_at))); |
| 1023 | |||
| 1024 | $data.="<h5 align='right'><span class='glyphicon glyphicon-user'></span>Last Login Details :$last_login_details</h5><br>"; | ||
| 1023 | } | 1025 | } |
| 1024 | /* Code for last login details Flexydial Security Patch*/ | 1026 | /* Code for last login details Flexydial Security Patch*/ |
| 1025 | //code end | 1027 | //code end | ... | ... |
-
Please register or sign in to post a comment