[Development] P0 Mac help needed due to Daylight savings
samuel.gaist at edeltech.ch
Mon Mar 27 01:02:15 CEST 2017
> On 26 Mar 2017, at 20:11, Thiago Macieira <thiago.macieira at intel.com> wrote:
> This test began failing today:
> FAIL! : tst_QLocale::macDefaultLocale()
> 'timeString.contains(expectedGMTSpecifier) ||
> timeString.contains(expectedGMTSpecifierZeroExtended)' returned FALSE.
> (timeString `1:02:03 AM GMT+02:00', expectedGMTSpecifier `GMT+3' or `GMT+03')
> The expectation is correct, since Finland is now in Summer time at GMT+3.
> Someone on a Mac, please check why it's getting GMT+02.
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel Open Source Technology Center
> Development mailing list
> Development at qt-project.org
Likely a “time propagation” problem. Switzerland changed also in the night of Saturday to Sunday. I have checked that the test failed while I was starting to look into the macOS specific code, midnight passed and then test started to succeed again.
I did a quick and rough check using NSCalendar in place of CFGregorianDate and the result was the same, the update to the timezone was only done once march 27 started. Before that, GMT+1 was returned.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: Message signed with OpenPGP
More information about the Development