ketsalot1 / in-app-purchase-air-ios

Automatically exported from code.google.com/p/in-app-purchase-air-ios
1 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

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36923006-date-of-transaction-returning-1970?utm_campaign=plugin&utm_content=tracker%2F21979375&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F21979375&utm_medium=issues&utm_source=github).
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