Moved timezone setting at the top

Should fix #1066.