use tzinfo to get the correct timezone offset

fixes #1