Login     Sign up
TimeZone wrong on events
Tim WAddell (@mediatricks)
Join date: Mar 5th 2011
Community posts: 2
View Profile
Send Message

I have updated the timezone offset in my/config.php to be +3. The times displayed on the posts and login stats are correct but whenever I enter an event the time is posted wrong.

I set an event to start at 7.30pm and the event is posted as starting at 3.30am.

Once an event is posted there is no way to go back and edit the date/time - only the description so I have to delete and re-create the event.

160 months ago
ROBERT MILLAR (@millarmr)
Join date: Mar 5th 2011
Community posts: 46
View Profile
Send Message

file: modules\events\events.php

functions hook_writestorypost and ajax_post

right code is:
Code

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

160 months ago
1
Tim WAddell (@mediatricks)
Join date: Mar 5th 2011
Community posts: 2
View Profile
Send Message

That seems to have done it.

Thank you!

160 months ago