[Kde-imaging] [Bug 140890] The preview does not display date and time properly for Japanese locale

Gilles Caulier caulier.gilles at gmail.com
Sat Jun 9 10:20:28 CEST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=140890         
caulier.gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From caulier.gilles gmail com  2007-06-09 10:20 -------
SVN commit 673172 by cgilles:

kipi-plugins from KDE3 branch : TimeAdjust : use local date time encoding to display exemple on bottom of dialog
BUG: 140890


 M  +25 -3     timeadjustdialog.cpp  


--- branches/extragear/kde3/libs/kipi-plugins/timeadjust/timeadjustdialog.cpp #673171:673172
 @ -1,4 +1,26  @
-7
+/* ============================================================
+ *
+ * This file is a part of kipi-plugins project
+ * http://www.kipi-plugins.org
+ *
+ * Date        : 2004-05-16
+ * Description : a plugin to set time stamp of picture files.
+ *
+ * Copyright (C) 2003-2005 by Jesper Pedersen <blackie kde org>
+ * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * ============================================================ */
+
 // C Ansi includes.
 
 extern "C"
 @ -375,9 +397,9  @
 
 void TimeAdjustDialog::slotUpdateExample()
 {
-    QString oldDate = d->exampleDate.toString();
+    QString oldDate = d->exampleDate.toString(Qt::LocalDate);
     QDateTime date  = updateTime(KURL(), d->exampleDate);
-    QString newDate = date.toString();
+    QString newDate = date.toString(Qt::LocalDate);
     d->exampleAdj->setText(i18n("<b>%1</b><br>would, for example, "
                                "change into<br><b>%2</b>")
                           .arg(oldDate).arg(newDate));


More information about the Kde-imaging mailing list