Jump to content
Larry Ullman's Book Forums

Time Zones In Yii


Luis
 Share

Recommended Posts

Thanks Larry. For example, in Laravel, in the config file, I can setup a variable for the time zone, for example "America/Mexico" and when I work with dates like (Now() function) the function returns the time and date of this specific time zone. Can I do something like this in YII ?, I'm asking this because of the shared hosting I use, and I don't have the change to configure the web server's time zone directly.

Link to comment
Share on other sites

Sorry for the delay. That's interesting about Laravel. Sounds like a nice feature, in theory. As far as I know, Yii does not have a comparable feature, but I haven't had the need to look into it in any depth. Normally I do all my date and time handling in the database. Sorry I could be more helpful here.

Link to comment
Share on other sites

 Share

×
×
  • Create New...