Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    So it is showing it to be a day extra than it actually is?

    Thread Starter bitkahuna

    (@bitkahuna)

    that’s correct, here’s the actual google calendar shown embedded:
    https://dev.mcbia.org/calendar-embed/

    and on the gce view, you’ll see the parade event (in list) is shown as a day longer.
    https://dev.mcbia.org/events-calendar/

    Thread Starter bitkahuna

    (@bitkahuna)

    i defined the event in google calendar as from 3/14-3/29/15.

    i THINK google says the multi-day event goes from:

    3/14/15 12:00:00
    to
    3:30/15 12:00:00

    so the fact that it goes to the start of the first second of the day after the 29th is the problem. somehow you need a special case in there.

    if multi day and end time is 0:0:0 then the last day is really the day before

    Thread Starter bitkahuna

    (@bitkahuna)

    i fixed it.

    in class-gce-event.php, line 37 is determining the type of event (single day, single part day, multiple whole day, etc.)

    here’s the code and the fix.

    if ( ( '12:00 am' == date( 'g:i a', $start_time ) ) && ( '12:00 am' == date( 'g:i a', $end_time ) ) ) {
    	$this->day_type = 'MWD';
    	$this->end_time -= 86400;	// fix!
    } else {
    Plugin Contributor Nick Young

    (@nickyoung87)

    Hey I did some work on this recently, do any of the latest updates resolve the issue you were having?

    Thanks!

    Before patching the source I did:

    [if-multi-day]
    Vom [start-date] bis [end-date offset=”-1″]
    [/if-multi-day]

    worked for me

    Thread Starter bitkahuna

    (@bitkahuna)

    Nick, no that didn’t fix it.

    A multi-day event still shows the last day as the day beyond. It’s because Google considers the last day of the event to end at 12:00a.m. which is technically the ‘next day’.

    Thread Starter bitkahuna

    (@bitkahuna)

    Thanks sjmlde – your workaround works.

    Nick – my fix will work for you in the code. Here it is in context of your latest code:

    line 37

    if ( ( '12:00 am' == date( 'g:i a', $start_time ) ) && ( '12:00 am' == date( 'g:i a', $end_time ) ) ) {
    	if( $end_time - $start_time > 86400 ) {
    		$this->day_type = 'MWD';
    		$this->end_time -= 86400;	// fix
    	} else {
    		$this->day_type = 'SWD';
    	}
    } else {
    	$this->day_type = 'MPD';
    }
    Plugin Contributor Nick Young

    (@nickyoung87)

    Thanks I will check it out.

    I have the same problem with multiple day events but am completely new to wordpress and programming. Where can I find line 37 of code?, everything seems to be user-friendly widgets and aps. Is it in icalendar or in the wordpress Upcoming Events widget and how do I get into the code to change it???

    Plugin Contributor Nick Young

    (@nickyoung87)

    @bitkahuna, @belakic,

    I have still not been able to reproduce this on my side. Could you share your calendar ID and your feed and widget (if using) settings so that I can enter them in and see if I get the issue that way.

    Thanks!

    Calendar ID is [ email redacted ]
    iCalendar feed url is https://www.google.com/calendar/ical/turningpointepa%40gmail.com/public/basic.ics

    Website is https://www.turningpointeperformanceacademy.wordpress.com using the “Upcoming Events” widget in the sidebar. Not sure of the widget settings, just a title -Upcoming Events, feed url, and items to show-6.

    Events having trouble are Acrobatic Arts Teacher Training Course on 10/6/15-11/6/15 and Acrobatic Arts Examinations 12/6/15-13/6/15. They are not showing like this on our website (instead showing 10/6/15-12/6/15 and 12/6/15-14/6/15).

    Thanks for your time

    Plugin Contributor Nick Young

    (@nickyoung87)

    Are you using the regular ID or the .ics ID in the plugin settings?

    Plugin Contributor Nick Young

    (@nickyoung87)

    Assuming this got resolved since there are no recent response here. Please let us know if you have any other problems and we will be glad to assist.

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘multi-day event shown with extra day on end date’ is closed to new replies.