diff --git a/Library/PTPusherAPI.m b/Library/PTPusherAPI.m index 9931f85d..f150b62a 100644 --- a/Library/PTPusherAPI.m +++ b/Library/PTPusherAPI.m @@ -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;