Respect user preferences when formatting time
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) |
---|---|---|
How to set up and validate locally
- Enable the
todos_snoozing
feature flag: http://gdk.test:3000/rails/features/todos_snoozing. - Navigate to the todos dashboard: http://gdk.test:3000/dashboard/todos
- Interact with the snoozing dropdown.
- Navigate to your user's Time preferences at http://gdk.test:3000/-/profile/preferences#time-preferences.
- Change your time formatting setting.
- Repeat steps 1-3.
Related to #17712
Edited by Paul Gascou-Vaillancourt