Merge pull request #17 from Filazapovich/master

iOS: Fix localized numbers in transaction date for some Arab countries
This commit is contained in:
Björn Ritzl 2020-03-05 06:29:00 +01:00 committed by GitHub
commit 1c017cf4ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,6 +233,7 @@ static void CopyTransaction(SKPaymentTransaction* transaction, IAPTransaction* o
} }
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease]; NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
[dateFormatter setLocale: [NSLocale localeWithLocaleIdentifier:@"en_US_POSIX"]];
[dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZZZ"]; [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZZZ"];
out->ident = strdup([transaction.payment.productIdentifier UTF8String]); out->ident = strdup([transaction.payment.productIdentifier UTF8String]);