Bug 1819827

Summary: Unable to select proper country from timezone map
Product: [Fedora] Fedora Reporter: Jashaswimalya Acharjee <jashaswimalyaacharjee>
Component: gnome-control-centerAssignee: gnome-sig
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, fmuellner, gnome-sig, jadahl, jashaswimalyaacharjee, jkonecny, jonathan, kellin, otaylor, philip.wyett, reallylongword, vanmeeuwen+fedora, vponcova, vslavik, walter.pete, wwoods
Target Milestone: ---Keywords: Tracking, UserExperience
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Clicking on India selects Pakistan (Ironically). none

Description Jashaswimalya Acharjee 2020-04-01 16:32:42 UTC
Created attachment 1675465 [details]
Clicking on India selects Pakistan (Ironically).

Description of problem:
In the timezone map, during the selection of Timezone for cities. Clicking on some countries selected a different place on the map, rather than selecting that country. 
For eg: I am from India and selecting India points towards other countries, such as Pakistan and Sri Lanka, etc. Whereas clicking on the sea waters under Bangladesh selects India.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Click on the center of the Indian subcontinent
2. You will notice Pakistan getting selected.
3. Click On the sea area under Bangladesh and it will select India

Actual results:
Selecting someplace other than the clicked region.

Expected results:
Selecting the proper location where clicked by the mouse pointer

Additional info:
I tried it both in the Live USB environment and also on my VM. 
Got the same outcome.

Comment 1 Jashaswimalya Acharjee 2020-04-01 16:35:51 UTC
During the Date and time zone(location) Selection window, Some places can't be selected that easily using the mouse pointer. For eg. I am from India and thus I was selecting India and I was not selecting. Some other country above or below India were getting selected and the randomly clicking I selected India.

Comment 2 David Shea 2020-05-17 14:15:54 UTC
Reassigning to anaconda. When I run the widget on its own (using the test script in https://github.com/dashea/timezonemap) clicking on India selects the India timezone, as expected. Anaconda may not be sending the correct coordinates to the underlying widget.

Comment 3 Vladimír Slávik 2020-05-20 13:48:10 UTC
Hi David and Jashaswimalya, please clarify why this should be assigned to anaconda?

Original report mentions f32 live environment and the resulting system. Screenshot clearly shows the shell, not anaconda. I can not reproduce this with rawhide anaconda, but I can with f30 and rawhide gnome shell.

In fact based on some quick clicking around, it seems to me that either something is wrong with the TZ data, or some assumption is no longer true, or even never was. The only Indian city I can select is "Kolkata, India" for Asia/Kolkata and the rest of clicks simply go to other places. It seems that time zones are selected by cities, and cities are selected based on proximity to click position. So the map shown on the control is only pretty to look at, but the real functionality is based on a de-facto voronoi diagram of the city positions, which would be a very different picture. Obviously as Kolkata is far to the right (east), much of the India falls into cells of other cities, closer simply because the countries around are smaller. Disclaimer - I have not looked at code.

Comment 4 Vladimír Slávik 2020-06-02 13:19:20 UTC
Two weeks later, no reply, thus reassigning to GNOME shell - that's where the screenshot is from.

Comment 5 Vladimír Slávik 2020-09-07 10:18:43 UTC
I can reproduce using rawhide as of today.

Comment 6 Jonas Ådahl 2020-09-07 11:11:21 UTC
The screenshot is of Settings, not Shell, so changing component again.

Comment 7 Fedora Admin user for bugzilla script actions 2021-08-21 00:04:39 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.