summaryrefslogtreecommitdiffstats
path: root/examples/sql/sqlbrowser/browser.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-08-31 16:48:37 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-09-01 11:26:54 +0200
commitb656cea5deccab352b7c4c56d7023f5108578654 (patch)
tree73384b46bd96fdc18831cb718d13e4c3c7447e56 /examples/sql/sqlbrowser/browser.cpp
parent5598a15fe7507e7638449598fa5a8aadd95ef350 (diff)
Fix corner case in QTimeZonePrivate::dataForLocalTime()
If the local time for which we want data is after the last known transition, the two transitions we get to bracket it are the last known and an invalid one. The code checked the former was valid, but neglected to check the latter, leading to nonsense arithmetic later in the function. In this situation we unequivocally want the last known transition, so the problem is easily solved. Fixes: QTBUG-96152 Pick-to: 6.2 6.1 5.15 5.12 Change-Id: I6fc830ce538e8a572093cd8dfe832e10689bf904 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/sql/sqlbrowser/browser.cpp')
0 files changed, 0 insertions, 0 deletions