diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2021-02-23 12:16:06 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-03-01 16:44:51 +0100 |
| commit | 63fbabde2378a57c0f144786de089530d1d43fa8 (patch) | |
| tree | a5e5af850950e3b192a511841f150659aa123605 /src/corelib/tools/qcommandlineparser.cpp | |
| parent | 5af6b59b6e7d1b88de219570011ea482603ea684 (diff) | |
Only store offsetFromUtc when sane (and assert sanity)
The addition of a sanity-assertion revealed that, for an invalid
time-zone, refreshZonedDateTime() left epochMSecs unset but computed
offsetFromUtc from it none the less. Leave it as zero in that case, or
any other where the conversion to UTC didn't give valid date and time.
Change-Id: I0ebd955798532e91e7e211bf065667e313ee5c2d
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions
