[Development] P0 Mac help needed due to Daylight savings
Samuel Gaist
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
> http://lists.qt-project.org/mailman/listinfo/development
Hi,
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.
Samuel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.qt-project.org/pipermail/development/attachments/20170327/effaa246/attachment.sig>
More information about the Development
mailing list