#deadshot_docs

1 messages ยท Page 1 of 1 (latest)

paper gateBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1305891166864277516

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

silent shadow
#

But, overall, the timestamps in our API are UTC so no DST applies. The only place you'll see DST is in the Dashboard, where the timestamps are localised

harsh bane
#

Ok. How and where do I apply a trial period of one hour?

silent shadow
#

The doc outlines that โ€“ you'd use the trial_end param and pass a unix timestamp that correlates to the time you want the new anchor fixed to

#

But as I said, the period will still be fixed to the original UTC timestamp you used. The only place it appears to have changed is in the Dashboard

#

If you do this now, you're going to have the same issue in March when DST starts again

harsh bane
#

So, as an example, I should put trial_end of Nov 15, 4:00 AM timestamp to update this subscription sub_1QGIabHCPH5IrTb7U9bSNgFC, so the next invoice will be created at this exact time.

silent shadow
#

Well that request for generate a new invoice immediately for $0 to reflect the 'trial', then at the trial_end timestamp a new invoice will be generated for the next paid period

harsh bane
#

I got it. Thanks

#

Will test that in test mode