#James Tuttle ๐Ÿ‡บ๐Ÿ‡ธ

1 messages ยท Page 1 of 1 (latest)

severe canopyBOT
river igloo
patent shell
#

req_wqnEl0Q8ErhtQv

river igloo
#

yeah, I think Date.now is in milliseconds, can you try dividing it by 1000?

severe canopyBOT
patent shell
#

I did this at the function call :
const dt = (Date.now() / 1000)

 const stripeId = await firebase.functions().httpsCallable
      ('createStripeConnectAccount')({
        ...values, tos_acceptance: {
          date: dt,
          ip: res.data.IPv4
        }
      });


Oh the error differnt now, looks like a float and needs to be an int, cast it then...

chrome hull
#

Hi @patent shell I'm taking over

patent shell
#

parseInt() did it! now I am at the Stripe page

#

I added parsetInt() after the divide to get out of milli

chrome hull
#

Let me know if you have any follow-up questions