If the TZ environment variable does not have a value, the operation chooses a time zone by default. In the GNU C Library, the default time zone is like the specification ‘TZ=:/etc/localtime’ (or ‘TZ=:/usr/local/etc/localtime’, depending on how the GNU C Library was configured; see Installation).
$ TZ=:/etc/localtime python -c 'import tzlocal; print(tzlocal.get_localzone())'
local
I'll check it out. This format should be supported, but I do see I forgot to strip away the leading ":" in the _tz_name_from_env() function, maybe this confuses things.
21.5.6 Specifying the Time Zone with TZ:
Why set $TZ at all? There's a serious performance issue on Red Hat when TZ is not set.