timezone.js calls the system.timezone route with a date parameter that is never used

Created on 23 March 2025, 13 days ago

Problem/Motivation

timezone.js generates this kind of AJAX URL: /system/timezone/0/3600/0?date=Sun%20Mar%2023%202025%2015%3A58%3A36%20GMT%2B0100%20(heure%20normale%20d%E2%80%99Europe%20centrale)

But it seems the date query parameter is never used in TimezoneController.

Steps to reproduce

I'm not sure how to trigger the AJAX call, it seems it is only triggered if new Intl.DateTimeFormat().resolvedOptions().timeZone returns an unsupported timezone name.

Proposed resolution

Remove the parameter and make sure it does not break anything.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

other

Created by

πŸ‡«πŸ‡·France prudloff Lille

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024