Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
Luis

Time Zones In Yii

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


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.

Share this post


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.

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...
Sign in to follow this  

×
×
  • Create New...