Skip to content

Commit

Permalink
Fixes IOS-276 Send milliseconds in Apptentive metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster committed Nov 19, 2013
1 parent 05282e1 commit 767a329
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion ApptentiveConnect/source/Model/ATRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
@property (nonatomic, retain) NSNumber *clientCreationUTCOffset;

+ (NSTimeInterval)timeIntervalForServerTime:(NSNumber *)timestamp;
+ (NSNumber *)serverFormatForTimeInterval:(NSTimeInterval)timestamp;

- (void)setup;
- (void)updateClientCreationTime;
Expand Down
6 changes: 1 addition & 5 deletions ApptentiveConnect/source/Model/ATRecord.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ + (NSTimeInterval)timeIntervalForServerTime:(NSNumber *)timestamp {
return clientTimestamp;
}

+ (NSNumber *)serverFormatForTimeInterval:(NSTimeInterval)timestamp {
return @((long long)(timestamp));
}

+ (NSObject *)newInstanceWithJSON:(NSDictionary *)json {
NSAssert(NO, @"Abstract method called.");
return nil;
Expand Down Expand Up @@ -57,7 +53,7 @@ - (void)updateWithJSON:(NSDictionary *)json {
- (NSDictionary *)apiJSON {
NSMutableDictionary *result = [NSMutableDictionary dictionary];
if (self.clientCreationTime != nil) {
result[@"client_created_at"] = [ATRecord serverFormatForTimeInterval:(NSTimeInterval)[self.clientCreationTime doubleValue]];
result[@"client_created_at"] = self.clientCreationTime;
}
if (self.clientCreationTimezone != nil) {
result[@"client_created_at_timezone"] = self.clientCreationTimezone;
Expand Down

0 comments on commit 767a329

Please sign in to comment.