Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hello everyone,

 

I have a problem with my dates/time. When a user replies to a thread the time is not displayed according to his/here time zone. For example I have created some users with time zone of GMT+2 but when those users reply to threads the 'posted on' field contains the time value as GMT or simple put the user time zone - 2 hours.

 

What could be the problem and how can I correct it?

 

Thanks

Link to comment
Share on other sites

I'd start by confirming that the user's timezone is being stored in the session and is being used in the query. I'd also confirm that your timezone conversions are working in the database. 

Link to comment
Share on other sites

Hi Larry,

 

I found out I misspelled the user's timezone session variable name on the read.php page instead of using the one started after login.

After a couple of echos to confirm if the session['time_zone'] holds some value I was able to solve that problem by using the correct variable name.

 

Thanks.

Link to comment
Share on other sites

 Share

×
×
  • Create New...