Bug 140890 - The preview does not display date and time properly for Japanese locale
Summary: The preview does not display date and time properly for Japanese locale
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-TimeAdjust (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 14:23 UTC by Yukiko Bando
Modified: 2018-09-22 08:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yukiko Bando 2007-01-30 14:23:10 UTC
Version:           0.1.3 (using KDE KDE 3.5.5)
Installed from:    Mandriva RPMs
OS:                Linux

Long or short, the Japanese date format is always in the order of YEAR 
MONTH DATE WEEKDAY.  The preview in Time and Date Adjust does not honor my settings in kcontrol, i.e. YYYY年mM月dD日 (SHORTWEEKDAY) and looks like this.

火 1月 30 22:25:00 2007 (WEEKDAY MONTH DATE TIME YEAR)

2007年1月30日 (火) 22:25:00 is expected.
Comment 1 caulier.gilles 2007-06-09 10:20:25 UTC
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));