Closed c-x closed 9 years ago
CentOS 7 has removed the file /etc/sysconfig/clock for command like timedatectl.
/etc/sysconfig/clock
timedatectl
The function tzlocal.get_timezone() which should return for example "Europe/Paris" is in that case returning "local", which is invalid.
tzlocal.get_timezone()
CentOS 6 >>> tzlocal.get_localzone() <DstTzInfo 'Europe/Paris' LMT+0:09:00 STD> CentOS 7 (even though timedatectl is correctly set) >>> tzlocal.get_localzone() <DstTzInfo 'local' PMT+0:09:00 STD>
Workaround: Create the file /etc/sysconfig/clock which contains the timezone.
Thanks
This has been fixed and will be included in the next release.
CentOS 7 has removed the file
/etc/sysconfig/clock
for command liketimedatectl
.The function
tzlocal.get_timezone()
which should return for example "Europe/Paris" is in that case returning "local", which is invalid.Workaround: Create the file /etc/sysconfig/clock which contains the timezone.
Thanks