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

QDateTime::fromString does not accept Qt::TextDate format from toString() in Vietnamese locale

    XMLWordPrintable

Details

    • Linux/X11
    • 8
    • ea80c076403ea8139fb34366df57cb83f0cb925a (qt/tqtc-qtbase/tqtc/lts-5.15)
    • Qt6_Foundation_Sprint 27, Qt6_Foundation_Sprint 28

    Description

      Looks like the output from toString() looks like:

      "Th 2 thg 11 16 14:05:44 2020"
      

      But this is not accepted by fromString() because there are spaces in the day (Th 2) and month (thg 11) names. fromString() splits the input string by space, so it doesn't get the expected result it is hoping for and returns invalid date.

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            poikelin Joni Poikelin
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes