regebro / tzlocal

A Python module that tries to figure out what your local timezone is
MIT License
184 stars 58 forks source link

Skip comment lines in /etc/timezone #68

Closed EdwardBetts closed 5 years ago

EdwardBetts commented 5 years ago

On some systems, /etc/timezone is 2 lines, a comment, then the timezone.

Reported as a bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-tzlocal/+bug/1797857

This change includes a test data and a test.

regebro commented 5 years ago

Can you add yourself to the contributors list in the README, and also add this change to CHANGES.txt?

65

EdwardBetts commented 5 years ago

I've updated CHANGES.txt, my name appears in the README.