This is related to a bug/change in glibc 2.29. The failure can arise if timezone is not set (e.g., "Etc/UTC"), and possibly other scenarios that would result in tm_isdst < 0.
The behavior of mktime differs on ubuntu 20.04 and 18.04 as they use different glibc versions. Aurelien with Debian notes this may be a bug for 18.04. Please see the thread with Debian for further detail.
A resolution on this issue was identified with Debian:
https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 1001774
The behavior noted here is expected and correct.
This is related to a bug/change in glibc 2.29. The failure can arise if timezone is not set (e.g., "Etc/UTC"), and possibly other scenarios that would result in tm_isdst < 0.
The behavior of mktime differs on ubuntu 20.04 and 18.04 as they use different glibc versions. Aurelien with Debian notes this may be a bug for 18.04. Please see the thread with Debian for further detail.