Luis Posted February 22, 2013 Share Posted February 22, 2013 How can I work with a specific Time Zone inside my Application in Yii ? Link to comment Share on other sites More sharing options...
Larry Posted February 22, 2013 Share Posted February 22, 2013 Could you be more specific as to what you're hoping to accomplish? Just saying that you want to work with a specific time zone is too vague. Link to comment Share on other sites More sharing options...
Luis Posted February 26, 2013 Author Share Posted February 26, 2013 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 More sharing options...
Larry Posted March 2, 2013 Share Posted March 2, 2013 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 More sharing options...
Luis Posted March 3, 2013 Author Share Posted March 3, 2013 thanks for answering Larry Link to comment Share on other sites More sharing options...
Recommended Posts