diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-03-21 15:07:48 +0100 |
---|---|---|
committer | Tony Sarajärvi <tony.sarajarvi@qt.io> | 2019-03-22 07:32:52 +0000 |
commit | 03fadc26e7617aece89949bc7d0acf50f6f050a9 (patch) | |
tree | 2da6ae332630caa0883ca8d2dbc57495131e2460 /src/corelib/itemmodels | |
parent | 1119cd4ece6555be82212b273d05d581bffb79d1 (diff) |
Fix broken data for time-zones with no transitions
While an invalid time-zone shall have no transitions, so may various
constant zones, like UTC. The TZ data may include only the POSIX rule
for such a zone, in which case we should use it, even if there are no
transitions.
Broke out a piece of repeated code as a common method, in the process,
since I was complicating it further.
Added test for the case that revealed this; and made sure we see a
warning if any of the checkOffset() tests gets skipped because its
zone is unsupported.
Fixes: QTBUG-74614
Change-Id: Ic8e039a2a9b3f4e0f567585682a94f4b494b558d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/itemmodels')
0 files changed, 0 insertions, 0 deletions