summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcommandlineparser.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-02-22 16:45:03 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-03-01 16:45:17 +0100
commitb4ee126a75e0f6f23ba9401352f30d5af8f4eccb (patch)
treef26452d06cffb42d2ecbab653a267a1a8834e445 /src/corelib/tools/qcommandlineparser.cpp
parent83421e320b8b0b2ddd528a280609cbb7f2cb7781 (diff)
Simplify QDateTimeParser::fromString() to always record the date-time
Previously, *datetime was only written to if the parse was a success. When parsing a date-time that's invalid by virtue of falling in a spring-forward gap, the parser returns a date-time that is invalid but has a toMSecsSinceEpoch() suitable for use in creating a sensible interpretation of the parsed string (in offset by the width of the gap from the specified position in the gap). It is more useful to return this value than a default-created QDateTime. Change-Id: I89f39e729b1f9fede1532d8b82f6f676477ddadb Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions