Asia/Calcutta is now Asia/Kolkata in Drupal

Created on 31 December 2024, 9 months ago

Problem/Motivation

The jstz library returns "Asia/Calcutta", but Drupal expects "Asia/Kolkata".

This results in the following error in Drupal:
""

Steps to reproduce

Spoof your location or timezone ID to Calcutta.
In Chrome this can be set in the dev tools > click on the 3 dots menu in the dev tools > More tools > Sensors
- Set location to "Other..."
- Set Timezone ID to "Asia/Calcutta"

Set the module to update timezone "whenever it changes" (3rd option)

Proposed resolution

The jstz library seems to no longer by maintained, maybe it's worth forking it and updating the list of timezones?

Otherwise, it might be best to to modify the returned timezone in JS after the library returns its result (so we avoid altering the library).

Remaining tasks

Implement solution above.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom khaled.zaidan

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