diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2021-02-22 16:35:44 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-03-01 16:45:07 +0100 |
| commit | 83421e320b8b0b2ddd528a280609cbb7f2cb7781 (patch) | |
| tree | d855d1f98e3c63a6a18d258008c7f852a16ea2d9 /src/corelib/tools/qcommandlineparser.cpp | |
| parent | 4a07947375ec3a6f353f1ed04024b1d6eb17177c (diff) | |
Try again if mktime() fails when we thought we knew DST-ness
When refreshing a QDateTime(,, Qt::LocalTime) we call mktime on data
obtained from it, passing in the DST status (when known; this keeps
two otherwise identical times in a fall-back distinct). One of the
tests relies on changing zone under the feet of such a date-time,
created in Hawaiian standard time; it serializes it, the reads it back
in Western Australian Daylight-saving time and expects the results to
be equal. However, the two differ in DST-ness, which leads to mktime()
failing for the Hawaiian original, with unwelcome results.
Notice this case, failure with DST-ness claimed known, and retry
without the claim, so as to correct the DST-ness.
Change-Id: Id0278df53130f76fc587769efe946ca9af1adc26
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
