Login     Sign up
Events Timezone Bug ( Solved )
Mark S. (@markiemark67)
Join date: Dec 4th 2010
Community posts: 136
View Profile
Send Message

I know that support is calling me crazy. But here are the facts. my timezone is -6,Oklahoma and my server is in another state UT. which is -7. When I post an Event say at 1pm. The event story reads @ 2pm. No matter how is setup my config.php or Preference I always get the 1pm event reading as 2pm. Why is the timezone not carrying over to my Events?

1 hour difference. I can set up my timezone for UT at -7 and show my Events correct. But that makes my system times off for Posts and Emails... Anyone Else have this problem?

163 months ago
Mark S. (@markiemark67)
Join date: Dec 4th 2010
Community posts: 136
View Profile
Send Message

Just in case anyone else has this problem. Here is the fix given to me by Jcow.

Open your "modules/events/events.php" with a text editor,
Round line 53 and line 167, you will find:
$timeline = strtotime($_POST['date'].' '.$_POST['time']);
change them to:
$timeline = strtotime($_POST['date'].' '.$_POST['time']) - 3600;

162 months ago
sujay sreedhar (@webkoot)
Join date: Nov 11th 2010
Community posts: 98
View Profile
Send Message

$timeline = strtotime($_POST['date'].' '.$_POST['time']) - 3600;

what this means?

162 months ago
Mark S. (@markiemark67)
Join date: Dec 4th 2010
Community posts: 136
View Profile
Send Message

The above fix the Mod was -3600 Which means -1hr For anyone haven Timezone problems. You change this mod to add or subtract Time. 3600=1hr

161 months ago