Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Fixed expiry dates millisecond to second conversion - Fixes Issue #212
Browse files Browse the repository at this point in the history
  • Loading branch information
MugunthKumar committed Jan 23, 2015
1 parent bc630fa commit 73d6b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MKStoreKit.m
Expand Up @@ -162,7 +162,7 @@ -(BOOL) isProductPurchased:(NSString*) productId {
-(NSDate*) expiryDateForProduct:(NSString*) productId {

NSNumber *expiresDateMs = self.purchaseRecord[productId];
return [NSDate dateWithTimeIntervalSince1970:[expiresDateMs doubleValue]];
return [NSDate dateWithTimeIntervalSince1970:[expiresDateMs doubleValue] / 1000.0f];
}

-(NSNumber*) availableCreditsForConsumable:(NSString*) consumableId {
Expand Down

0 comments on commit 73d6b77

Please sign in to comment.