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

Wrong short time format in QLocale

    XMLWordPrintable

Details

    • 68ff352906645a7a1beb0fa7e1ce34fff167c762

    Description

      The following code:

      qDebug() << QLocale::system().dateFormat(QLocale::LongFormat);
      qDebug() << QLocale::system().dateFormat(QLocale::ShortFormat);
      qDebug() << QLocale::system().timeFormat(QLocale::LongFormat);
      qDebug() << QLocale::system().timeFormat(QLocale::ShortFormat);
      

      produces:

      "dddd, dd. MMMM yyyy"
      "dd.MM.yyyy"
      "HH:mm:ss"
      "HH:mm:ss"

      Here the short time format is wrong (note the ":ss").
      The settings under Windows 7 are:

      Date (long): TTTT, TT.MMMM JJJJ
      Date (short): TT.MM.JJJJ
      Time (long): HH:mm:ss
      Time (short): HH:mm

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            roman80 Roman Wüger
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes