summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2017-07-03 11:59:01 +0300
committerJasem Mutlaq <[email protected]>2017-07-03 11:59:01 +0300
commita275e0cd0f8fcfa1dfbf16b839edc18dfe74ce4e (patch)
tree8530e514c32b7ae34f2fca58105f0b9390ae6024
parent5bf07b27ef38c338536ee657f2c1436cc8632b5b (diff)
Fix day duration format.
BUGS:381704 FIXED-IN:17.08
-rw-r--r--kstars/tools/modcalcdaylength.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kstars/tools/modcalcdaylength.cpp b/kstars/tools/modcalcdaylength.cpp
index d67bc68..75d3baf 100644
--- a/kstars/tools/modcalcdaylength.cpp
+++ b/kstars/tools/modcalcdaylength.cpp
@@ -144,7 +144,8 @@ void modCalcDayLength::updateAlmanac(const QDate &d, GeoLocation *geo)
stTimeString = QLocale().toString(stTime);
QTime daylength = lengthOfDay(ssTime, srTime);
- daylengthString = QLocale().toString(daylength);
+ //daylengthString = QLocale().toString(daylength);
+ daylengthString = QLocale().toString(daylength, "hh:mm:ss");
//...but not always!
}