Jump to content
Larry Ullman's Book Forums

Time Zones In Yii


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...