laravel / ideas

Issues board used for Laravel internals discussions.
939 stars 28 forks source link

sync Timezone config/app.php, Carbon, DB (query select based on configuration) #2048

Open erlangparasu opened 4 years ago

erlangparasu commented 4 years ago

for example

in laravel project i set Asia/Makassar (+08:00) but in MariaDB, the created_at is saved in UTC (+00:00)

expected behavior the laravel must convert whereDate to UTC first before finding in database