Skip to content

Timezones with the same identifier defaults to first listed

What does this MR do?

#57654 (closed) introduced user preferences for displaying time and storing their timezone.

Locations in the same timezone can share an identifier ie

{"name":"International Date Line West","offset":-39600,"identifier":"Pacific/Midway"}
{"name":"Midway Island","offset":-39600,"identifier":"Pacific/Midway"}

This introduces a UI bug, where the first location to match the identifier is always selected, which might not be the location the user selected

Summary

  • Fixes #61864 (moved)
  • Ensures the location the user selects is the location they see when they refresh the screen

Possible fixes

  • Store the user location and timezone separately
  • When the timezone dropdown loads, find the user's selected timezone by location not identifier

Closes #61864 (moved)

Edited by Ezekiel Kigbo

Merge request reports