jije's avatar
Level 1

Default Timezone in Lumen

Hello. I have one issue. Server, on which i have database is on different timezone. When I insert data in tables (created_at->useCurrent()), it inserts with server timezone. I want to set default timezone to my current timezone (+04:00). I tried every solution which i found in web, but it didn't work. I am using Lumen 5.6. I hope you will help. Thank you in advance

0 likes
2 replies
mvd's avatar

Hi Jije,

What is every solution? Also tried a 'DB_TIMEZONE' variable in your .env file?

jije's avatar
Level 1

Hi, Yes. I tried also DB_TIMEZONE=+04:00 But it didn't work

Please or to participate in this conversation.