DateTimeComputed & DateTimeDayComputed tries to compute from an empty value

Created on 21 November 2022, almost 2 years ago
Updated 23 April 2023, over 1 year ago

If a date field is empty, trying to get the date computed property on it causes DateDayComputed or DateTimeDayComputed to try to create a date object, which throw an exception.

It doesn't make sense to attempt to create a date or time if we know there's no source value anyway, so we should return early in that case.

πŸ› Bug report
Status

Fixed

Version

1.8

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium p-neyens

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