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

QTime/QDateTime missed AP suffix

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • 6.0
    • 5.6.1, 5.7.0
    • Core: Date/Time
    • None
    • Windows 10, msc_2015_64

    Description

      With this code:
      QDateTime date = QDateTime::fromString("14:13:09.042", "hh:mm:ss.zzz");
      qDebug() << date << " " << date.toString("H:m:s a");

      Date would be "14:13:9 pm" instead i have "14:13:9 "
      Same result using QTime.

      Also
      QDateTime date = QDateTime::fromString("14:13:09.042", "hh:mm:ss.zzz");
      qDebug() << date << " " << date.toString("h:m:s ap"); has wrong result: "2:13:9 " instead of "2:13:9 pm" (the correct)

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              niqt Nicola De Filippo
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes