I found documentation on setting the user’s timezone here:
Why can’t I apply this to the ‘time’ type?
I’m getting the following error: Call to undefined method Cake\Database\Type\TimeType::setUserTimezone()
This used to work in CakePHP 4. What changed?
Also, how can I handle time translation? What’s the best practice for this? Should I set the application’s timezone (App.defaultTimezone
) to UTC, considering that my database stores both datetime
and time
in UTC?
How does this affect the FormHelper
? Does it store the data correctly in this context?
For now, most of our users are in ‘Europe/Berlin’, but we aim to support international users as well.