Handle change in Ruby Time.to_s formats