Wrapped .to_time in a .try to handle the nil case