Skip to content

Commit

Permalink
Merge pull request pusher#134 from tonyxiao/patch-1
Browse files Browse the repository at this point in the history
Use NSDate instead of c func time to get timestamp (fixes pusher#133)
  • Loading branch information
lukeredpath committed Feb 12, 2014
2 parents 27b77dd + 39aed33 commit 9af9a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/PTPusherAPI.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ - (void)triggerEvent:(NSString *)eventName onChannel:(NSString *)channelName dat

queryParameters[@"body_md5"] = [[bodyString MD5Hash] lowercaseString];
queryParameters[@"auth_key"] = key;
queryParameters[@"auth_timestamp"] = @((double)time(NULL));
queryParameters[@"auth_timestamp"] = @([[NSDate date] timeIntervalSince1970]);
queryParameters[@"auth_version"] = @"1.0";
queryParameters[@"name"] = eventName;

Expand Down

0 comments on commit 9af9a79

Please sign in to comment.