Fix Time#to_f behaving differently between 1.8 and 1.9