#LucaDaniele

1 messages ยท Page 1 of 1 (latest)

river questBOT
pulsar peak
gentle stream
#

Do I have to specify only the seconds (example 3h = 10800s) or the date when it has to expire in seconds (example today at 12:00PM = 1675771200)?

pulsar peak
#

It's a epoch timestamp, not duration

gentle stream
#

Ok thank you very much

#

Hi sorry for coming back, I'm generating this timestamp 1675846123702 and when converting it to human date it gives tomorrow correctly, but when generating the checkout I get the following error: Invalid timestamp: can be no more than five years in the future

brisk sinew
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

1675846123702 this is in milliseconds we only take timestamps in seconds

#

so you need to divide it by 1000

gentle stream
#

Ok thanks, fixed it ๐Ÿ™‚

brisk sinew
#

happy I was of help

#

let me know if you need any more help

gentle stream
#

That's all, thank you

brisk sinew
#

would you mind me closing the thread then?

gentle stream
#

Last question I was thinking about now, timestamp doesn't have any timezone ofc (I'm in GTM +1 and if I convert the timestamp I get the +0 hour), does Stripe automatically manage the timezone when a user opens the link or I need to add like 25h so I compensate the missing timezone if I want to expire the link after a day?

brisk sinew
#

the timestamps are in GMT

gentle stream
#

ok so I need to add the hours of the timezone

#

Thanks

brisk sinew
#

let me know if you need any more help

brisk sinew
#

I think that would be easier

gentle stream