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

Mysql Time Zone For Hosted Website

Recommended Posts

Hello there,

 

I built a forum website based on chap 17. I uploaded that site to a free web hosting (www.000webhost.com). The problem I have is when the user is not logged in the data/time values show but once a user is logged in they don't show.

 

How can I update my database and make the user time zone work?

 

Any help or suggestion will be greatly appreciated.

 

Regards,

Gralf

Share this post


Link to post
Share on other sites

you could try a if construct.

 

test if end user is logged in, if so echo date time, where you want the data in the page.

 

what is weird in your question is that the date time is displayed when end user is not logged in.

 

of any construct that you made to call date time , may be bassakwards.

Share this post


Link to post
Share on other sites

The problem here is the lack of support for time zones in MySQL. You'd need to talk to your hosting company about supporting that. Or change the code to not recognize time zones. 

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

×
×
  • Create New...