[MGNLUI-7089] Incorrect Timezone Labels Created: 11/Apr/22 Updated: 20/Jul/22 Resolved: 06/Jun/22 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | user interaction |
| Affects Version/s: | 6.2.17 |
| Fix Version/s: | 6.3.0, 6.2.20 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Chris Jennings | Assignee: | Jaromir Sarf |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Attachments: |
|
||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||
| Sub-Tasks: |
|
||||||||||||||||||||||||||||||
| Template: |
|
||||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||
| Epic Link: | Nucleus Quality Maintenance | ||||||||||||||||||||||||||||||
| Sprint: | Nucleus 11 | ||||||||||||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||||||||||||
| Team: | |||||||||||||||||||||||||||||||
| Description |
| Comments |
| Comment by Quach Hao Thien [ 25/Apr/22 ] | ||||||||||||
|
The Timezone displays on the User Preference (or User Profile) in the format Timezone.getID() + Timezone.getDisplayName() Timezone.getDisplayName() is a method returns a name in the specified style of this TimeZone suitable for presentation to the user in the specified locale (user locale), so that is about how Magnolia displays the Timezone. Back to the concern of confusing of timezone label: GMT-11:00 (Etc/GMT+11), right here we have the GMT-11:00 is zoneId and the (Etc/GMT+11) is its display name. So let's say the UTC is the baseline (GMT+/-0 or Etc+/-0), and the GMT-11:00 in UTC mean that this timezone behinds 11 hours compare to UTC (offset 11:00) so it stays on the right of baseline, but the Etc/GMT+11 has it own way to state the number, when it's positive + means that the Timezone is on the right of UTC, and when it's negative, the Timezone is on the left. That means both the ID and its displayName state the same value but in different way.
~ equivalent to
Ref: https://stackoverflow.com/questions/7303580/understanding-the-etc-gmt-time-zone https://en.wikipedia.org/wiki/List_of_tz_database_time_zones https://www.travelmath.com/time-zone/Etc/GMT-11
Hope this help
| ||||||||||||
| Comment by Mikaël Geljić [ 02/May/22 ] | ||||||||||||
|
Thanks for the pointers thien.quach!
Reviewing this ticket last week, we reckoned we should carry out a bit more improvement:
| ||||||||||||
| Comment by Jaromir Sarf [ 18/May/22 ] | ||||||||||||
|
Discovery: info.magnolia.ui.framework.util.TimezoneUtil#getTimeZoneInfo(TimeZone, Locale) |