Skip to content

Respect user preferences when formatting time

Paul Gascou-Vaillancourt requested to merge 17712-better-time-format into master

What does this MR do and why?

Respect user preferences when formatting time

Leverages the DateTimeFormat helper to format times in the to-dos snoozing feature. This ensures that times are formatted according to user preferences.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After (12-hour format) After (24-hour format)
Screenshot_2025-01-08_at_8.41.41_AM Screenshot_2025-01-08_at_8.37.12_AM Screenshot_2025-01-08_at_8.37.35_AM

How to set up and validate locally

  1. Enable the todos_snoozing feature flag: http://gdk.test:3000/rails/features/todos_snoozing.
  2. Navigate to the todos dashboard: http://gdk.test:3000/dashboard/todos
  3. Interact with the snoozing dropdown.
  4. Navigate to your user's Time preferences at http://gdk.test:3000/-/profile/preferences#time-preferences.
  5. Change your time formatting setting.
  6. Repeat steps 1-3.

Related to #17712

Edited by Paul Gascou-Vaillancourt

Merge request reports

Loading