summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-03-27 11:12:01 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2017-07-03 09:03:28 +0000
commitf881120fd0e2496618c8587d091178f3d2f0b294 (patch)
tree65df3b7434dd0ac86363855958c7146aadd6611d /src/widgets
parentd52fa3efe5bdb5440a4d916df796fd9bba246110 (diff)
Fix offset calculation to be valid at the correct time
tst_QLocale::macDefaultLocale() was determining local-time's current offset from UTC and using it when working out what to expect the offset at 1:2:3 today to be. When a transition happens after 1:2:3 on its day (which is usual for DST changes in Europe), this lead to using the new offset to test a time before the transition; the test was thus wrong and failed. Use the time to be tested (and current date) to compute the offset to use, instead of using the current date-time. Change-Id: I1c02a5579bca859e1d1aeb4f45b24871a08287af Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions