Skip to content

Commit 45297b7

Browse files
committed
fix: fix NSString to NSDate conversion of transaction_date
1 parent 2db63e5 commit 45297b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Adjust/iOS/AdjustUnity.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ void _AdjustTrackAppStoreSubscription(const char* price,
625625

626626
// Transaction date.
627627
if (transactionDate != NULL) {
628-
NSTimeInterval transactionDateInterval = [[NSString stringWithUTF8String:transactionDate] doubleValue];
628+
NSTimeInterval transactionDateInterval = [[NSString stringWithUTF8String:transactionDate] doubleValue] / 1000.0;
629629
NSDate *oTransactionDate = [NSDate dateWithTimeIntervalSince1970:transactionDateInterval];
630630
[subscription setTransactionDate:oTransactionDate];
631631
}

0 commit comments

Comments
 (0)