summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-16 15:56:38 -0600
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-16 15:56:38 -0600
commit3766f57392bc8e315afe14b7640982e50cdd5529 (patch)
tree081046e29af0ebf376654be4ffa7d58997e9ca67
parentda07b4e5d7a9e5960c1db0e5fd5dd042e9bf28d4 (diff)
downloadsubsurface-3766f57392bc8e315afe14b7640982e50cdd5529.tar.gz
Don't show seconds for dive start time in the UI
Some divecomputers only report at minute granularity, anyway. And when diving with multiple dive computers they will never agree on the exact time. And anyway, what's the point of second granularity when it comes to the start time of a dive? Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index bb3001ff4..a7362d5f0 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -103,6 +103,7 @@ QString uiLanguage(QLocale *callerLoc)
dateFormat.replace("'en' 'den' d:'e'", " d");
timeFormat = loc.timeFormat();
timeFormat.replace("(t)", "").replace(" t", "").replace("t", "").replace("hh", "h").replace("HH", "H").replace("'kl'.", "");
+ timeFormat.replace(".ss", "").replace(":ss", "").replace("ss", "");
return uiLang;
}