I'm using the ANE for Amazon InAppBilling. It appears that the purchase dates I see in receipts are off by five months. It is June and I get January. The rest of the date and the time seems ok. Is the sandbox doing this? I would mention that the purchases are subscriptions. Thanks.
Is the sandbox supposed to return a reasonable date time in a purchase success or purchase update event? I am using the AmazonPurchase ANE and Actionscript. I don't see anywhere in your API that it says what units the times are in, seconds or milliseconds. I've tried both. I get back dates that are obviously wrong, 1970. Any ideas?
Hi Ahayes-ovs, Thanks for the information. We need little more clarification to debug the issue. I would like to know which field's value in the "Receipt" is coming wrong. There is no field for purchase date in the receipt. Are you talking about "subscriptionStartDate"? If it's subscriptionStartDate, the value should be representing ms since 1970 for the start date of the item. Is your device date set properly? Please clarify. Thanks.
Yes, subscriptionStartDate. I mentioned in my original post that I was testing subscriptions. Yes, the device date/time is correct; it's set automatically. I'm using the same code to convert the time in ms to an ActionScript Date object. It works everywhere else except on the subscriptionStartDate. I assume subscriptionEndDate would work the same way. My question was whether it was the sand box that might be wrong and the code would work correctly in the real world.
Hi Ahayes-ovs, Thank you for the information. In live mode the dates would come with correct value. But in sandbox also sdk tester should take care of the time. I will cross check and post back. Thanks for the patience.