arts639 / in-app-purchase-air-ios

Automatically exported from code.google.com/p/in-app-purchase-air-ios
0 stars 0 forks source link

Date of transaction returning 1970 #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Small error, but annoying as it looked to me it was returning 0. But actually a 
early date in 1970.

What steps will reproduce the problem?
1. trace(transaction.date) in actionscript of any transaction returned

Goto class:
com.adobe.nativeExtensions.AppPurchase.as

Change line 115 (as of writing):
from:
var timest:Number = Number( t.date.toString() );
To:
var timest:Number = Number( t.date.toString() ) * 1000;

Vital for restoring Subscriptions is to know when the transaction occurred

Original issue reported on code.google.com by prank...@gmail.com on 28 Mar 2012 at 3:51

GoogleCodeExporter commented 9 years ago
I just spent a couple hours trying to figure out what was going on here as 
well...

Original comment by jd.conley on 9 May 2012 at 8:31