Question: We have an application in Asp.net Webform. We must use passwordless sign-in using Microsoft Authenticator App. Basically, the user enters samAccountName, and the system must check Microsoft Authenticator App for approval, and based on the response we have to redirect to change the password screen.

We have a login module that validates our username password with the internal Active directory. We cannot implement a new authentication model now. We just need validation using the Microsoft Authenticator app after approval from the app we need to redirect to the change password screen there we will change the AD account password.

Where do I start with? Plz Help give some idea

Answer: 
The Raw Database returns correct time because DBMS time zone is correct.

but in Eloquent, `created_at` field converts into an `Carbon::class` instance by default.

and `Carbon::class` will use timezone configuration of your app to convert to real time.

so change in laravel `./config/app.php` :

```
'timezone' => 'Asia/Kuala_Lumpur',

```

because i suppose you are in +8 Timezone based on your profile location,
and your reporting time log are 8 hours difference from **UTC** the default time zone config in Laravel.
You can add a mutator to change format returned by eloquent

```
public function getCreatedAtAttribute($value) {
     return date('Y-m-d H:i:s',strtotime($value));
}

```

add this function in your Timeline model.

you can also modify function by using carbon methods

for more info you can refer to laravel docs.
<https://laravel.com/docs/8.x/eloquent-mutators#introduction>