Time difference format in top panel clock is not correct
Affected version
GNOME Version 42.0 on Ubuntu 22.04 in Xorg session (perhaps in Wayland too, but I'm not able to check).
Bug summary
If the time difference in the added locations (added using the GNOME Clocks app) is not an integer, it is not displayed correctly.
Steps to reproduce
-
Use the GNOME Clocks app to add a location with a non-integer time difference from your local time.
-
Click the clock on the top panel and observe the format of the time difference for the added locations.
What happened
I added Hamburg (-1 hour from my local time), New Delhi (+2.5 hours from my local time), and Kathmandu (+2.75 hours from my local time). The time difference for Hamburg is displayed correctly (-1
), but for New Delhi and Kathmandu the differences are displayed as +2.5:30
and 2.75:45
, respectively.
What did you expect to happen
Time differences for New Delhi and Kathmandu (non-integer in general) should be shown either as floats, i.e. +2.5
and +2.75
, or as proper time, i.e. +2:30
and +2:45
.
Relevant logs, screenshots, screencasts etc.
Here is a screenshot of the aforementioned locations and the incorrect time difference format: