Yii2 and storing data in database as UTC
问题 I'm using Yii2 and I was wondering how it decides what timezone to store the data in the database as? I have noticed the $defaultTimezone which seems to indicate it simply controls what timezone your input data is supposed to be when passing it to functions such as the the asTime function and it uses the formatter timezone to convert said data into the correct time output. But I'm wondering how do you make sure it is inserting the data into your database in the right timezone so then the