How to set the application timezone and MySQL for Yii2

category:  Yii2.0 framework

I built my own application in 2017 when I lived in the USA and all my clients were American. The timezone that I set at that time is Pacific timezone. In 2018, I moved back to Thailand and I need to set a new timezone. I will share how to set the timezone in MySQL and PHP in the Yii2 application. My host is a shared host so if you have the dedicated host it will work as well. Set … Read More