Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
dateWithTimeIntervalSince1970: updated to dateWithTimeIntervalSinceNow:
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Graves <zagraves@gmail.com>
  • Loading branch information
Hans Kim authored and zagraves committed Aug 9, 2009
1 parent 68fcc38 commit 2d68ef7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/YOSSocial/YOSAccessToken.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ + (YOSAccessToken *)tokenFromResponse:(NSData *)responseData
[theToken setSessionHandle:[tokenDictionary valueForKey:@"oauth_session_handle"]];
[theToken setTokenExpires:tokenExpires];
[theToken setAuthExpires:authExpires];
[theToken setTokenExpiresDate:[NSDate dateWithTimeIntervalSince1970:tokenExpires]];
[theToken setAuthExpiresDate:[NSDate dateWithTimeIntervalSince1970:authExpires]];
[theToken setTokenExpiresDate:[NSDate dateWithTimeIntervalSinceNow:tokenExpires]];
[theToken setAuthExpiresDate:[NSDate dateWithTimeIntervalSinceNow:authExpires]];

return theToken;
}
Expand All @@ -56,8 +56,8 @@ + (YOSAccessToken *)tokenFromStoredDictionary:(NSDictionary *)tokenDictionary
[theToken setSessionHandle:[tokenDictionary valueForKey:@"sessionHandle"]];
[theToken setTokenExpires:tokenExpires];
[theToken setAuthExpires:authExpires];
[theToken setTokenExpiresDate:[NSDate dateWithTimeIntervalSince1970:tokenExpires]];
[theToken setAuthExpiresDate:[NSDate dateWithTimeIntervalSince1970:authExpires]];
[theToken setTokenExpiresDate:[NSDate dateWithTimeIntervalSinceNow:tokenExpires]];
[theToken setAuthExpiresDate:[NSDate dateWithTimeIntervalSinceNow:authExpires]];

if([tokenDictionary valueForKey:@"consumer"]) {
[theToken setConsumer:[tokenDictionary valueForKey:@"consumer"]];
Expand Down

0 comments on commit 2d68ef7

Please sign in to comment.