Laravel Current Datetime is not same after storing in MongoDB

Viewed 1673

I'm using Laravel 5.4 with Jessengers for MongoDB.

I'm using Carbon to manipulate Date/Time.

Problem is my timezone is set (Asia/Dhaka) in config.php but Carbon::now() and mnongoDB's default created and updated fields are in still UTC.

So there is still 6 hrs difference between expected date/time and actually stored date/time .

What I'm missing ? Help will be appreciated

1 Answers
Related