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

QTime().currentTime().toString Qt::SystemLocaleShortDate and Qt::SystemLocaleLongDate both return the system long time.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.1.1
    • Fix Version/s: 5.2.1
    • Component/s: Core: Date/Time
    • Labels:
      None
    • Environment:
      Windows 7
    • Commits:
      68ff352906645a7a1beb0fa7e1ce34fff167c762 (qlocale_win, 27.9.2013), 6ab6ab73fe1055de8ce5a3b353b037424a84e187 (autotest fix)

      Description

      QString systemTime;
      systemTime = QTime().currentTime().toString(Qt::SystemLocaleShortDate);
      systemTime = QTime().currentTime().toString(Qt::SystemLocaleLongDate);

      Result:
      Both return the time format of Windows long time format.
      e.g. h:mm:ss tt

      Expected:
      Qt::SystemLocaleShortDate should return Windows short time format. E.g. hh:mm tt
      Qt::SystemLocaleLongDateshould return Windows short time format. E.g. h:mm:ss tt

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              thiago Thiago Macieira
              Reporter:
              kwinter Katherine
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes