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

    • Platform/s:
      Linux/X11
    • Commits:
      ea80c076403ea8139fb34366df57cb83f0cb925a (qt/tqtc-qtbase/tqtc/lts-5.15)
    • Story Points:
      8
    • Sprint:
      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

            Assignee:
            Eddy Edward Welbourne
            Reporter:
            poikelin Joni Poikelin
            PM Owner:
            Maurice Kalinowski Maurice Kalinowski
            RnD Owner:
            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