Date-only range expands on save

Created on 13 August 2022, over 2 years ago
Updated 29 December 2024, 3 months ago

Problem/Motivation

I have a date range field in a node using the Smart Date, date-only range widget. Whenever I save the node, the start date is decremented by one day and the end date is incremented by one day. The issue only occurs with that one widget - the "Smart Date and time" widget doesn't change the field values on save.

Steps to reproduce

Create a node with a date range field, set default start value and end value as Current date. Configure the Form Display to use the Smart Date, date-only range widget. Add a new node and save it. The start date will; be yesterday and the end date will be tomorrow. Each time the node is saved the dates get farther apart. (You can change the date values, but when saved they will be one day different from what you set them to.

🐛 Bug report
Status

Needs review

Version

3.7

Component

Code

Created by

🇺🇸United States peter pulsifer

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

Merge Requests

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