Problem with iap tutorial: seems to be inconsistent with Android V3

So, I’m implementing iap for Android using code from this tutorial:

http://coronalabs.com/blog/2013/09/03/tutorial-understanding-in-app-purchases/

The transactionCallback thread is crashing when it tries to convert the timestamp.

A brief investigation suggests that the plugin returns a transaction.date in milliseconds (like this: 1418851417227) and needs to be converted to seconds simply by dividing by 1000. Can anyone confirm this?

If it’s true, someone should update the Tutorial, it has good placement on Google so apparently lots of people use it.

The number of seconds since epoc is currently a 10 digit number, such as: 1418868760.  The number you posted has 3 extra digits, so it appears it is in milliseconds.

Rob

I agree, which is why I divided by 1000 before comparing it to os.time()

The number of seconds since epoc is currently a 10 digit number, such as: 1418868760.  The number you posted has 3 extra digits, so it appears it is in milliseconds.

Rob

I agree, which is why I divided by 1000 before comparing it to os.time()