[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdetoys/kweather
From:       André Wöbbeking <Woebbeking () web ! de>
Date:       2003-08-30 14:03:20
[Download RAW message or body]

CVS commit by woebbe: 

Use KLocale instead of hard coded time format.

CCMAIL: geiseri@kde.org


  M +5 -3      weatherservice.cpp   1.28


--- kdetoys/kweather/weatherservice.cpp  #1.27:1.28
@@ -3,4 +3,6 @@
 #include <kapplication.h>
 #include <kconfig.h>
+#include <kglobal.h>
+#include <klocale.h>
 #include <kstandarddirs.h>
 
@@ -233,5 +235,5 @@ QString WeatherService::sunRiseTime(cons
         kdDebug(12006) << "rise time: " << rise_time << endl;
         
-        return rise_time.toString("h:mm ap");
+        return KGlobal::locale()->formatTime(rise_time);
 }
 
@@ -247,5 +249,5 @@ QString WeatherService::sunSetTime(const
         kdDebug(12006) << "set time: " << set_time << endl;
         
-        return set_time.toString("h:mm ap");
+        return KGlobal::locale()->formatTime(set_time);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic