diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2018-10-01 20:01:54 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2018-10-02 13:49:45 +0000 |
commit | ced34cb3d5805f1fbaf3b275714a1a5f3585900c (patch) | |
tree | c27cd25f2461b2623b4f6dcd6989eba3367d1c2d /tests/auto/bic | |
parent | 5a295a1009dad3a020be10331fa8e8c6163a9106 (diff) |
QDateTimeParser: avoid using an invalid hour by default
When a time-zone does a spring-forward, skipping an hour (either to
start DST or to move its standard time), there's an hour that doesn't
exist on the day in question. That hour can be the first hour of the
day, in which case using 0:0 as the default time is broken. So catch
this case and use the first time that day that makes sense.
Fixes: QTBUG-70823
Change-Id: I23dae9320a3cdd2c988841a7db1b111edb945730
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/bic')
0 files changed, 0 insertions, 0 deletions