diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2022-09-23 16:39:22 +0200 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-10-18 14:13:28 +0200 |
| commit | 1bf3faa54b15b3eb0a89f251bff1d2d67eeda42e (patch) | |
| tree | b1e9ceea15feb0b0f8beca30b4d25495cfc89bd0 /src/network/access/qnetworkreply.cpp | |
| parent | 743035b76a120bde725f16b22571d71c68a1a780 (diff) | |
Correct handling of month-lengths in QDateTimeParser
Use calendar's month length upper bound instead of hard-coding 31.
When year isn't specified, QCalendar can still tell us a month's
"usual" number of days, so use that rather than giving up on getting
the day of month within that bound. Still don't try to fix the day of
the week when we don't know the year.
Change-Id: I90fbe02b180fc4c88b809d2ca71c075ff4dfd473
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network/access/qnetworkreply.cpp')
0 files changed, 0 insertions, 0 deletions
