Fixed syntax errors in timezone module

The timezone module contained some syntax errors. I think I herewith fixed them while maintaining backwards compatibility.