Europe Timezone past time calendar vanishes

Created on 17 May 2025, 27 days ago

Problem/Motivation

During the fix for https://www.drupal.org/project/webform_booking/issues/3524041 🐛 Calendar not working for america timezone Needs review a new issue was implemented for European timezone.

Steps to reproduce

  1. Enable webform_booking
  2. Add booking element to webform
  3. Set the start date to one month in the past and the end date to one month in advance of the current date.
  4. Access webform on European timezone
  5. The previous month will be available for selection on dropdown
  6. Select previous month and the calendar will disappear, forcing you to reload the page to use it

to mimic any timezone use https://chromewebstore.google.com/detail/change-timezone-time-shif/nbofe... extension is available for Firefox too

Proposed resolution

Added explicit UTC time settings for all date operations
Removed modification of start/end dates based on current date

Remaining tasks

Review & Test.

User interface changes

Previously, timezone differences were causing some months to be filtered out incorrectly

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇧🇷Brazil julio_retkwa Balneário Camboriú

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024