[Kstars-devel] KDE/kdeedu/kstars/kstars/tools

Médéric Boquien mboquien at free.fr
Wed Jun 24 05:31:55 CEST 2009


SVN commit 986058 by mboquien:

The length of the day is a duration, not a time. It was localized as a date, which obviously caused problems with locales using the 12 hours format.

BUG: 197689
CCMAIL: kstars-devel at kde.org


 M  +1 -1      modcalcdaylength.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/modcalcdaylength.cpp #986057:986058
@@ -138,7 +138,7 @@
         stTimeString = KGlobal::locale()->formatTime( stTime );
 
         QTime daylength = lengthOfDay(ssTime,srTime);
-        daylengthString = KGlobal::locale()->formatTime( daylength );
+        daylengthString = KGlobal::locale()->formatTime( daylength, false, true );
 
         //...but not always!
     } else if ( stAlt.Degrees() > 0. ) {


More information about the Kstars-devel mailing list