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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.2.1
    • 5.1.1
    • Core: Date/Time
    • None
    • Windows 7
    • 68ff352906645a7a1beb0fa7e1ce34fff167c762 (qlocale_win, 27.9.2013), 6ab6ab73fe1055de8ce5a3b353b037424a84e187 (autotest fix)

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes