Error in DateRangeTimezone widget when default value is empty

Created on 9 September 2022, over 2 years ago
Updated 12 April 2023, over 1 year ago

Problem/Motivation

Error when trying to create a node.

Steps to reproduce

* Create a content type
* Add a date field using the datetime range timezone module.
* Field is not required.
* Set the end date as none instead of Current Date.
* Try to create a new node.

I can create a new node and leave the field empty.

Error

Proposed resolution

Check for null and avoid setting a timezone if date is not set.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇷Costa Rica alemadlei

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024