summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-06 10:23:33 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-06 10:23:33 -0700
commit158a853d97db56450d9e11d8ba34ea6e1af636c4 (patch)
tree4d01eb0890ec12e86c71dac23e39a64cfd1c7250 /qt-gui.cpp
parent3aaf8b1f5af275f3b1d26ff7c21c6b47448d76c0 (diff)
downloadsubsurface-158a853d97db56450d9e11d8ba34ea6e1af636c4.tar.gz
Remove left overs from time zone designation in Windows/Spanish
We remove the time zone designation when showing times (as all our times have no timezone). But the Spanish localization on Windows shows the time zone in parenthesis - and the existing code then left those parenthesis behind which looked very strange. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 6abdd83ae..ed960d7eb 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -99,7 +99,7 @@ QString uiLanguage(QLocale *callerLoc)
dateFormat = loc.dateFormat(QLocale::LongFormat);
dateFormat.replace("dddd,", "ddd").replace("dddd", "ddd").replace("MMMM", "MMM");
timeFormat = loc.timeFormat();
- timeFormat.replace(" t", "").replace("t", "").replace("hh", "h").replace("HH", "H");
+ timeFormat.replace("(t)", "").replace(" t", "").replace("t", "").replace("hh", "h").replace("HH", "H");
return uiLang;
}