Gauged duality, conformal symmetry, and spacetime with two times