[foreign] test_time timezone trouble (TZ)

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Sun Sep 23 19:57:16 UTC 2018



On 22/09/18 00:41, Jorn Vernee wrote:
> Maurizio Cimadamore schreef op 2018-09-22 01:18:
>> Maybe an easier solution would be to tweak the test to use gmtime()
>> instead of localtime() and then stick to GMT? That ought to be more
>> robust?
>>
>> Maurizio
>
> That's a good idea, I didn't know if you specifically wanted to test 
> localtime(). I've changed the test to use gmtime(), and am testing 
> against `ZoneOffset.UTC`. StdLibTest is now passing, I'll try to get 
> the last few tests passing as well before submitting as a patch!
>
There was no specific need to call localtime() - I just wanted something 
that returned a Tm struct back and I overlooked the gmtime function 
which should be far more reliable. So I'm all for replacing that.

Maurizio
> Jorn



More information about the panama-dev mailing list