Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8288

Datetime formats in QLocale contain unnecessary spaces

XMLWordPrintable

      From autotest\qlocale\tst_qlocale.cpp

      QCOMPARE(no.dateTimeFormat(QLocale::NarrowFormat), QLatin1String("dd.MM.yy HH.mm"));
      QCOMPARE(no.dateTimeFormat(QLocale::ShortFormat), QLatin1String("dd.MM.yy HH.mm"));
      QCOMPARE(no.dateTimeFormat(QLocale::LongFormat), QLatin1String("dddd d. MMMM yyyy 'kl'. HH.mm.ss "));

      The space in the end of the format string comes from format characters that are not supported by Qt. For example in CLDR some date/time format strings contains "y" or "z" or "zzzz" which are not supported by Qt. We should either extent Qt to support them or to wipe them out of the format string when converting a CDLR format to Qt format.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            dzyubenk Denis Dzyubenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes