TypeError: DateTime::setTimezone(): Argument #1 ($timezone) must be of type DateTimeZone

Created on 20 June 2023, over 1 year ago
Updated 30 June 2023, over 1 year ago

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.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States gribnif

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024