Skip to content

Commit

Permalink
@DaTa['bdate'] could contain '09.09' when user hides year.
Browse files Browse the repository at this point in the history
  • Loading branch information
timurvafin committed May 11, 2011
1 parent 076e2c2 commit 30ac7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oa-oauth/lib/omniauth/strategies/vkontakte.rb
Expand Up @@ -55,7 +55,7 @@ def user_info
'last_name' => @data['last_name'],
'name' => "#{@data['first_name']} #{@data['last_name']}",
'nickname' => @data['nickname'],
'birth_date' => (@data['bdate'].to_date if @data['bdate']),
'birth_date' => (@data['bdate'].to_date rescue nil),
'image' => @data['photo'],
'location' => "#{@country}, #{@city}",
'urls' => {
Expand Down

0 comments on commit 30ac7a1

Please sign in to comment.