Check that timezone is set to the current value of the tz attribute

Closes #4.