Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Leinert,

    I made changes in this plugin file “ical-for-wp-calendar/ical-wp-calendar.php”

    Thanks

    I also having same problem
    i just changed this below lines (I am .NET developer. I did my best to fix this issue)

    if ($event->allday == TRUE)
    			{
    				$eventStartString =date("Ymd", strtotime($event->from)); //dateToRfc5545String($event->from, FALSE, TRUE);
    				$eventEndString =date("Ymd", strtotime($event->to)); //dateToRfc5545String($event->to, FALSE, TRUE);
    			}
    			else
    			{
    
    				//$eventStartString =dateToRfc5545String(datetimeToUTC_PHP52($event->from), TRUE, TRUE);
    				//$eventEndString   =dateToRfc5545String(datetimeToUTC_PHP52($event->to), TRUE, TRUE);
    //"TZID=". date("e", strtotime($event->from)). ":" .
    				$eventStartString = date("Ymd", strtotime($event->from))."T". date("His", strtotime($event->from));
    //"TZID=". date("e", strtotime($event->to)). ":" .
    				$eventEndString   = date("Ymd", strtotime($event->to))."T". date("His", strtotime($event->to));
    
    			}

    I just commented old code. I think, also changed
    DTSTART; to DTSTART:
    and
    DTEND; to DTEND:

    And it works fine for now I can download ics file and also add in Google Calendar.

    I used like this for Google Calendar
    https://www.google.com/calendar/render?cid=webcal://%5BSITENAMEHERE%5D/?wp-calendar-ical

    I hope, it will be helpful up to next fix. I find that there is no item in $event -> tsfrom and $event -> tsto .

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)