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

QTime/QDateTime missed AP suffix

XMLWordPrintable

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

      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)

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes