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

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.1
    • 5.1.1
    • Core: Date/Time
    • None
    • Windows 7
    • 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

          For Gerrit Dashboard: QTBUG-33718
          # Subject Branch Project Status CR V

          Activity

            People

              thiago Thiago Macieira
              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