Bug 63531

Summary: Date format in history doesn't use locale setting
Product: [Applications] juk Reporter: Christophe Teyssier <chris>
Component: generalAssignee: Scott Wheeler <wheeler>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christophe Teyssier 2003-08-31 20:59:34 UTC
Version:            (using KDE 3.1.3)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

The date format used in the History is MM/DD/YYYY HH:mm:ss AM/PM instead of the KDE locale format.
Comment 1 Scott Wheeler 2003-11-09 05:39:28 UTC
Subject: kdemultimedia/juk

CVS commit by wheeler: 

Use the date formate from KGlobal.

CCMAIL:63531-done@bugs.kde.org


  M +4 -3      historyplaylist.cpp   1.5


--- kdemultimedia/juk/historyplaylist.cpp  #1.4:1.5
@@ -17,4 +17,5 @@
 
 #include <klocale.h>
+#include <kglobal.h>
 #include <kdebug.h>
 
@@ -60,5 +61,5 @@ HistoryPlaylistItem::HistoryPlaylistItem
     m_dateTime(QDateTime::currentDateTime())
 {
-    setText(0, m_dateTime.toString(LocalDate));
+    setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
 }
 
@@ -67,5 +68,5 @@ HistoryPlaylistItem::HistoryPlaylistItem
     m_dateTime(QDateTime::currentDateTime())
 {
-    setText(0, m_dateTime.toString(LocalDate));
+    setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
 }
 
@@ -78,5 +79,5 @@ void HistoryPlaylistItem::setDateTime(co
 {
     m_dateTime = dt;
-    setText(0, m_dateTime.toString(LocalDate));
+    setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
 }