Fix weird indent and add a throw a conversion error if the object
doesn't have time and timezone properties and if these values are
invalid