- Fix facebook BirthDate bind with PNUser
This commit is contained in:
parent
3bac17f9df
commit
a8c96aef44
@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'PNObject'
|
||||
s.version = '1.1.2'
|
||||
s.version = '1.1.3'
|
||||
s.summary = 'PNObject is a simple replica of the more complex ParseObject'
|
||||
|
||||
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
#import <FBSDKShareKit/FBSDKShareKit.h>
|
||||
#import "PNObjcPassword.h"
|
||||
#import "HTTPStatusCodes.h"
|
||||
#import "NSDate+NSDate_Util.h"
|
||||
|
||||
|
||||
@interface PNUser() <PNObjectSubclassing>
|
||||
@ -321,6 +322,7 @@ static bool isFirstAccess = YES;
|
||||
[user setEmail:[result objectForKey:@"email"]];
|
||||
[user setFacebookId:[result objectForKey:@"id"]];
|
||||
[user setFacebookUser:YES];
|
||||
[user setBirthDate:[[NSDate dateFromString:[result objectForKey:@"birthday"] withFormat:kNSDateHelperFormatSQLDateEN_shashSeparated] toLocalTime]];
|
||||
[user saveLocally];
|
||||
|
||||
USER = user;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user