I am trying to implement timezone in an app.
I have a beforeAction in my controllers that sets the timezone, but it doesn’t to carry over to a rendered view, or to a model if I call a model function from the controller.
For model, I do a similar thing as in the controller, I set the timezone in the tablename function because that gets called any time a model is used (I hope that is correct at least).
I think I will have to do something similar for all my views.
I was just wondering if there is a better way to set a timezone for a specific user.