• Resolved langhof

    (@langhof)


    Hi,

    my events.ics (plugin: events-manager) shows wrong event times. Only the start of the first (next) event is correct. Other times have an 5 hour offset instead -2.

    Exampls with local germany (d.m.Y H:m):

    1. event
    start: 11.05.2013 14:00 DTSTART:20130511T120000Z = -2h ok
    end : 11.05.2013 18:00 DTEND: 20130511T230000Z = +5h false

    2. event
    start: 11.05.2013 14:00 DTSTART: 20130511T190000Z = +5h false
    end : 11.05.2013 23:30 DTEND: 20130512T043000Z = +5h false

    3. event
    start: 12.05.2013 11:00 DTSTART: 20130512T160000Z = +5h false
    end : 12.05.2013 17:00 DTEND: 20130512T220000Z = +5h false

    When I substract 7h in the ical.php (-25200), the start of the first(next) event is wrong. When the first event is over and the second is the next, the error is moving to this one.

    Anybody the same problem?

    http://ww.wp.xz.cn/extend/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    works for me, (just to make sure) did you correctly setup your wp timezone at WP Settings > General ?

    Thread Starter langhof

    (@langhof)

    Thx for replay!

    Timezone is correct. I checked this again.
    Events are shown correct in the blog.
    I fixed the ICS-problem “quick’n’dirty” in the ical.php

    <?php
    $my_offset = 0;
    ...
    //loop through events
    ...
    		}else{
    			$dateStart	= ':'.get_gmt_from_date(date('Y-m-d H:i:s', $EM_Event->start + $my_offset), 'Ymd\THis\Z');
    			$my_offset = -25200;
    			$dateEnd = ':'.get_gmt_from_date(date('Y-m-d H:i:s', $EM_Event->end + $my_offset), 'Ymd\THis\Z');

    It works.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    thanks. we will going to investigate this issue.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    could it be ou saved some of those events when your blog was set to different timezones? I don’t get this issue, but we’re looking into timezone stuff so will keep this in mind.

    Since the problem seems specific to you, I’d recommend copying the template over to your theme – http://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter langhof

    (@langhof)

    I’d copyed the template before.

    Now I set the timezone from Berlin to UTC+2 (should be the same).
    All times correct in the events.ics.
    Then I set back to “Berlin”. Problem like before.
    It’s not only Berlin. Copenhagen also don’t match.

    Interesting. If you set the timezone to other cities in the same zone as Berlin (Amsterdam, Rome, etc..) do you have the same problem?

    Thread Starter langhof

    (@langhof)

    Amsterdam, Rome, Berlin, Copenhagen … all the same sh..

    When I set UTC or a manual offset UTC+2, I get the correct times

    Ok, looks like I’m getting something similar when I use city names instead of the numerical time difference. It’s a possible bug, so I’ll make sure Marcus sees this update.

    Thread Starter langhof

    (@langhof)

    Ok. Thx for help!

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    I can’t reproduce this myself actually. I use city name offsets usually and no problems.

    since you copied the template before, how about using our default template e.g. try renaming your template so it isn’t used and test.

    I’ve asked Caimin for more info on how he reproduced the error.

    Thread Starter langhof

    (@langhof)

    Hi,

    so, I made some screenshots.

    At first: I use the standardtheme twentyeleven, wordpress 3.5.1, plugins all up2date.

    I rename my template-directory (sc0.gif)
    my timezone (sc1.gif)
    my events (sc2.gif)
    my ics-file (sc3.gif)

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    thanks for the screenshots, I’ll test this out and get back to you.

    Thread Starter langhof

    (@langhof)

    Ok, I’ll switch to UTC+2. Hope that’s no other problem at another place
    πŸ˜‰

    caimin_nwl

    (@caimin_nwl)

    Just an update on our testing. We’re unable to reproduce the exact error on our test sites, meaning it could be something specific with your server.

    Do you have any way to test it on a different server?

    Thread Starter langhof

    (@langhof)

    You’re right. It’s very special. Other server at same provider and all things are good.
    I’ll try to find the bug at the basement or let it live and use my very special hack for my very special problem πŸ˜‰

    Thx for support!

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘ical events.ics wrong times’ is closed to new replies.