diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2024-03-21 17:41:26 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2024-04-19 12:39:41 +0100 |
commit | 3e426182e2e8122d96b208702faaf3177f3a3081 (patch) | |
tree | 474d9455f2cb32218c67fae009c81b115c1fc7f7 /src/plugins/platforms/xcb/qglxintegration.h | |
parent | b87db4296cb5d41a9915f04cc7638f975836c046 (diff) |
Fix end-of-parse fixup of two-digit year in QDateTimeParser
When a date string contains day of the week, day of the month, month
and two-digit year, it was still possible to get a conflicting result
in the default century instead of a consistent result in the next (in
fact present) century.
The actual logic needed to get the right year has to take into account
all date fields. This is all worked out already in actualDate(), so
delegate to it instead of trying to make do with just the year info.
Pick-to: 6.7 6.6 6.5
Fixes: QTBUG-123579
Change-Id: Id057128d8a0af9f3a7708d0ee173f854bb1a2a8e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qglxintegration.h')
0 files changed, 0 insertions, 0 deletions