Bug 63531 - Date format in history doesn't use locale setting
Summary: Date format in history doesn't use locale setting
Status: RESOLVED FIXED
Alias: None
Product: juk
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Scott Wheeler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-31 20:59 UTC by Christophe Teyssier
Modified: 2003-11-09 05:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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));
 }