lib/omniauth/strategies/ihealth.rb in omniauth-ihealth-oauth2-1.1.0 vs lib/omniauth/strategies/ihealth.rb in omniauth-ihealth-oauth2-1.1.1

- old
+ new

@@ -65,11 +65,11 @@ def user_data info = raw_info user_data ||= { :name => info["nickname"], :gender => info["gender"].try(:downcase), - :birthday => Time.at(info["dateofbirth"]).to_date.strftime("%Y-%m-%d"), - :image => URI.unescape(info["logo"]), + :birthday => Time.at(info["dateofbirth"].to_i).to_date.strftime("%Y-%m-%d"), + :image => URI.unescape(info["logo"].to_s), :nickname => info["nickname"], :height => calc_height(info["height"], info["HeightUnit"]), :weight => calc_weight(info["weight"], info["WeightUnit"]) } end