#oleg-codaio
1 messages · Page 1 of 1 (latest)
As an example, when I start a subscription on Feb 28, the end date for it is March 31 rather than March 28
I'm just wondering if these set of rules Stripe follows are encoded somewhere, or if there's some documentation implementation it follows
Can you share the subscription ID (sub_xxx), so that I can take a look?
Another example is if you start a monthly subscription now at 4:55pm now, it will renew at a different time (due to DST) next month
For the latter it's sub_1MjBIEAegRHrUhUqdr3cbhZy
For the first one it's sub_1MggKdJdZl0mcnn25X18sRRJ
Checking it now
For the creation request https://admin.corp.stripe.com/request-log/req_rEQwuvC4hwtmv7 of sub_1MggKdJdZl0mcnn25X18sRRJ,
- current_period_start: 1677641213 (2023-03-01 03:26:53 UTC)
- current_period_end: 1680319613 (2023-04-01 03:26:53 UTC)
The starting period is actually the first of the month with the reference of UTC. Since your dashboard is in PDT, it will translate to PDT local timestamp equivalent which is a day before
Stripe uses UTC as the timestamp for the APIs. The dashboard is in local timestamp which is converted from UTC. I'd recommend checking API for the UTC timestamp that is used for subscription starting and ending date