#thepassenger-retrieve-subscription

1 messages · Page 1 of 1 (latest)

hybrid star
#

What are the timestamps you are using?

#

Can you show me how you are setting the values for endedAt?

versed yew
#

I'm not setting those values, because the subscription is cancelled using the subscription.cancel() I don't set the value

#

But in the dashboard in Stripe I can see the correct value, but when I get the list of the subscriptions, I use new Date(subscription.endedAt) and it returns me a different date in the 1970

#

Aaaaa thanks for the link

#

I think I need to do Date((long)timeStamp*1000);

#

So I need to multiply the timestamp * 1000

hybrid star
#

Happy you could figure it out.