diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2022-07-15 15:29:39 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-09-29 14:42:55 +0200 |
commit | 0bc92c01e364b89250b7d23ec3078563548609f8 (patch) | |
tree | aaafad0573e6bfaa278f158c74d1165209943db4 /src/corelib/text/qlocale.cpp | |
parent | 5818dd3cadfe8184ed37a5d3d8363a1204a90aac (diff) |
Support parsing time-zone specifiers more selectively
[ChangeLog][QtCore][QDateTime] The 't' format used in fromString() can
now be repeated to restrict parsing to particular forms. Thus 'tt' now
matches the [+-]hhmm offset format (no colon), 'ttt' the [+-]hh:mm
offset format (with colon), and 'tttt' matches an actual zone
name. When used singly, 't' still matches anything the parser knows
how to interpret as a zone specifier.
[ChangeLog][QtCore][QLocale] The 't' format in toDateTime() now has
repeated forms, as for QDateTime::fromString().
Task-number: QTBUG-95966
Change-Id: I73753145cb66a56bc25a5c2dd5cb051ba982fa2c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qlocale.cpp')
0 files changed, 0 insertions, 0 deletions