Display confirmation dialog before changing user timezone

Created on 30 November 2020, over 3 years ago
Updated 14 August 2023, 11 months ago

Problem/Motivation

In a case where simply some of our users want to set their timezone differently, or in a case when timezone has been detected erroneously, we'd like to show a confirmation dialog to make sure users want to update their timezone before changing it in the background.

Proposed resolution

Before changing the timezone, ask the user if they really want to change it with a confirmation dialog, and if they answer "No" set a cookie to ignore the timezone detection for 3 months

Remaining tasks

* Add configurability - Allow admins to set if they want confirmation shown, allow admins to customize the duration of the cookie, allow admins to customize the displayed text
* Add tests

User interface changes

A drupal ajax dialog is shown before updating the timezone. The timezone is only updated if the user answers "Yes" to the dialog.

✨ Feature request
Status

Needs review

Version

1.0

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom Baysaa

Live updates comments and jobs are added and updated live.
  • needs backport to 7.x-1.x

    The patch should be considered for backport to the 7.x-1.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

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.69.0 2024