Hello!
Came we debate with colleagues: we Have an international project, accordingly, users with different timzone. Apparently in order not to bathe with formatting dates when you run the application timezone for PHP to be equal tisone user (from the settings of the profile definition or IP) method Yii::app->setTimeZone which in turn calls a PHP function date_default_timezone_set). (in principle, suggest here
Yii2. How to display a date depending on timeZone? )
I, honestly, seeing this for the first time. In other projects, the timezone was always set equal tisone server and not changed depending on user settings. If you want to take the time to timzone user - it pre-it was translated.
How do you do? What's the correct approach?