[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001774: tm_isdst=1 with mktime produces unexpected output



Dear Aurelien,

Great, thank you. This is definitive. I will follow up on the ubuntu and cpython reports referencing the resolution here. 

Best,
Daniel

> On Dec 20, 2021, at 12:23 PM, Aurelien Jarno <aurelien@aurel32.net> wrote:
> 
> On 2021-12-20 09:06, Daniel McDonald wrote:
>> Dear Aurelian,
>> 
>> I can confirm that changing the timezone within Ubuntu 20.04 through Github Actions resolves the bug. The default set timezone is “Etc/UTC” as reported by “timedatectl”. Setting to “America/Los_Angeles” with “timedatectl” allows for a passing workflow. A link to the pass, with contextual information, can be found here (note, this is under a fork of CPython where this behavior was being investigated):
>> 
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_wasade_cpython_runs_4584894670-3Fcheck-5Fsuite-5Ffocus-3Dtrue-23step-3A17-3A76&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=JZIhRLe8LYVxCij0w2LVB69druPdj_BdYvbW4MOnEIs&m=tCdHHHyMgq2tynI83gVKLXTjps3xMmRKgCVEoUrCvQSiB2NGz8ZBY7Ud3INwpUvO&s=v4pYyoVSKRRtaR9066NrYG_s8MZcPaAvteCxD8nLRNA&e= 
>> 
>> While this is reassuring, it seems the behavior is qualitatively different across operating systems (or glibc versions). I’m unsure if that is expected. As an example, we pass on Ubuntu 18.04 without changing the timezone:
>> 
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_wasade_cpython_runs_4585124128-3Fcheck-5Fsuite-5Ffocus-3Dtrue-23step-3A14-3A43&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=JZIhRLe8LYVxCij0w2LVB69druPdj_BdYvbW4MOnEIs&m=tCdHHHyMgq2tynI83gVKLXTjps3xMmRKgCVEoUrCvQSiB2NGz8ZBY7Ud3INwpUvO&s=F1WMEuJuVhxTCOw5JqTjoFyP38tsZvoSJFAJMqJmNl8&e= 
> 
> Ubuntu 18.04 seems to run glibc 2.27. Versions of glibc older than 2.29
> are affected by bug #23789 [1], and do not report any error if the date
> is not representable. This is arguably a bug in Ubuntu 18.04, but this
> behaviour is expected.
> 
> Regards,
> Aurelien
> 
> 
> [1] https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceware.org_bugzilla_show-5Fbug.cgi-3Fid-3D23789&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=JZIhRLe8LYVxCij0w2LVB69druPdj_BdYvbW4MOnEIs&m=tCdHHHyMgq2tynI83gVKLXTjps3xMmRKgCVEoUrCvQSiB2NGz8ZBY7Ud3INwpUvO&s=-E-4u4DJcWQZErh4tq5C4CfnFsYRmo7ez5SBjt6pnQ4&e= 
> 
> -- 
> Aurelien Jarno                          GPG: 4096R/1DDD8C9B
> aurelien@aurel32.net                 https://urldefense.proofpoint.com/v2/url?u=http-3A__www.aurel32.net&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=JZIhRLe8LYVxCij0w2LVB69druPdj_BdYvbW4MOnEIs&m=tCdHHHyMgq2tynI83gVKLXTjps3xMmRKgCVEoUrCvQSiB2NGz8ZBY7Ud3INwpUvO&s=wlfDxm7QuH2JTX0QTnxl2ma-kHV2wjQ2uTEEsPNSOs0&e= 
> 


Reply to: