#thepassenger-retrieve-subscription
1 messages · Page 1 of 1 (latest)
What are the timestamps you are using?
Can you show me how you are setting the values for endedAt?
For reference if you need info on unix time stamps https://www.unixtimestamp.com/
Epoch and unix timestamp converter for developers. Date and time function syntax reference for various programming languages.
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
Happy you could figure it out.