From 158a853d97db56450d9e11d8ba34ea6e1af636c4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 6 Aug 2014 10:23:33 -0700 Subject: 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 --- qt-gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-gui.cpp') 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; } -- cgit v1.2.3-70-g09d2