Fix spurious timezones in time infobox display

Authored by asimha on Dec 28 2016, 11:41 AM.

Description

Fix spurious timezones in time infobox display

Before this patch, one would see things like:

UT: 12:37:32 PM CDT

Clearly, this is wrong. Similarly, there is no reason that the
timezone that KStars is using (based off of geolocation) matches that
of the system locale. So both LT and UT would carry a spurious
timezone name (i.e. that of the system locale).

This commit:

  1. Standardizes UT to HH:mm:ss -- it would be ugly to use AM/PM etc for UTC.
  1. Removes timezone from LT display. There seems to be no clean way to do this in an otherwise locale-respecting manner, so we get the format string using QLocale::timeFormat() and then remove the timezone format symbol 't' from the string using QString::remove, then pass it to QTime::toString.

BUG:

Details

Committed
asimhaDec 28 2016, 11:44 AM
Parents
R321:7fbad1312a2f: Fix minor typo
Branches
Unknown
Tags
Unknown