Empty Datetime fields are inserting current date and time

Created on 16 March 2021, about 4 years ago
Updated 21 April 2023, almost 2 years ago

Thanks for the work on this, it's very handy.

Problem/Motivation

I'm trying to insert an optional end date (webform Date/Time field). When the field is left empty on the submission, the node created has the current date/time as the field value.

Steps to reproduce

  • Create webform with optional date/time field
  • Create content type with optional date/time field, default value none.
  • Create Webform Content Creator configuration mapping the two fields together.

Expected result:

  • Empty value in webform submission.
  • Empty value in newly created node.

Result:

  • Empty value in webform submission
  • Current date/time in newly created node.

I've just updated to 2.0.1 and the issue is still present there as well.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇨🇦Canada occupant Canada

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