I have an Android app with app subscriptions. After the user has purchased the subscription, I request "validUntilTimestampMsec" and "initiationTimestampMsec" through our Google API server.
The returned timestamp "initiationTimestamp" is correct and represents the time the user made the purchase, but the returned timestamp "validUntilTimestamp" always has a difference of +12 hours to the actual valid - to the time I need. The i function used to retrieve the date is comparable to both timestamps.
Where did 12 hours come from and how can I get the right time. The expiration date will also not display correctly for a user on Google Play.
Example monthly subscription:
There is:
InitiationTimestamp: 1374433559436 (19:05)
validUntilTimestamp: 1377155159436 (7:05) → start time + 1 month + 12 hours
It is required:
InitiationTimestamp: 1374433559436 (19:05)
validUntilTimestamp: 1377111959 (7:05 pm) → start time + 1 month without 12 hours
source share