#ema-subscriptions

1 messages · Page 1 of 1 (latest)

maiden vortex
#

that's the right field, but Date in Javascript expects a timestamp in milliseconds, in our API it's in seconds

wheat bloom
#

So I should do that value * 1000?

maiden vortex
#

yep

#

or use libraries like Luxon or Moment.js

wheat bloom
#

And considering I'm listening to every customer.subscription.updated event, this should be updated monthly, right?

maiden vortex
#

yep that event fires when the subscription cycles each month, and the current_period_[start|end] will change