Fix bug in determining TZ.