Gralf Posted May 12, 2014 Share Posted May 12, 2014 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 More sharing options...
Larry Posted May 14, 2014 Share Posted May 14, 2014 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 More sharing options...
Gralf Posted May 15, 2014 Author Share Posted May 15, 2014 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 More sharing options...
Larry Posted May 16, 2014 Share Posted May 16, 2014 That would do it! Kudos for figuring it out and thanks for letting me know. Link to comment Share on other sites More sharing options...
Recommended Posts