#BILLY
1 messages · Page 1 of 1 (latest)
Ends Tue Jan 20 1970 11:27:37 GMT+0100 (Greenwich Mean Time)
Hi there
Hi
When you say "subscription expiry date" what do you mean exactly?
The date the new invoice is due/sent
Yessir, sorry for the misunderstanding
Gotcha then yes mostly you want current_period_end
What Sub are you looking at that shows an "unrealistic" period end?
Can you give me the ID?
sub_1MdJYcFDMSYDNc3RI5ToCM4U
I'm formatting the date simply by entering the value inside a new date object and viewing it as a string for the time being.
Hmm yeah if you look at the most recent Sub updated Event for that Sub (https://dashboard.stripe.com/test/events/evt_1MdJhjFDMSYDNc3RLv6zlSBr) you can see "current_period_end": 1679257945, which is March 19
So seems like something wrong with how you are handling the timestamp
There are various ways, would recommend some googling
Like https://stackoverflow.com/questions/847185/convert-a-unix-timestamp-to-time-in-javascript has some examples
Have a good one