Problem/Motivation

When the smart date being exported contains a set timezone, this error results:
TypeError: DateTime::setTimezone(): Argument #1 ($timezone) must be of type DateTimeZone
That's because the code is trying to pass a scalar timezone name, rather than a DateTimeZone object.

Proposed resolution

Please try the attached patch.

CommentFileSizeAuthor
#2 views_ical_3368027.patch945 bytesarpitk
views_ical.diff945 bytesgribnif

Comments

Gribnif created an issue. See original summary.

arpitk’s picture

Status: Active » Needs review
StatusFileSize
new945 bytes
bburg’s picture

Tested and appears to work for me.

  • bburg committed 8b400457 on 8.x-1.x authored by arpitk
    Issue #3368027 by Gribnif, arpitk: TypeError: DateTime::setTimezone():...
bburg’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.