#KarlS-PI

1 messages · Page 1 of 1 (latest)

agile plover
#

hello @river pewter! can you share your req id, it'd look something like req_123

river pewter
#

yep, 1 sec.

#

looking. is it under Logs under Developers?

agile plover
#

yep, but you would need to click on the Method button and select 'GET' methods

#

otherwise it doesn't show GET methods in the logs by default

river pewter
#

req_pmNWHzX0JEoPFe

agile plover
#

give me a second to look into this

river pewter
#

ok

agile plover
river pewter
#

OK, I may have sent wrong req_. keep this thread alive. Just sitting down for dinner.

agile plover
#

sure thing!

river pewter
#

Just ran another request for Payments

#

The date I sent was 9/28/2021 5:14:36 PM

#

The request is: req_b1oSyRodb6gsgN

#

And this date/time is this PI: pi_3Jejt2G30Vl6ne6N0jUYEf9r

#

I think I see the problem Alex.

agile plover
#

out of curiosity what was it?

river pewter
#

The time that I am saving to DB is my local time (which I do not understand) and the time I see on the PI is 3 hours earlier

#

So... if I fetch dates from Stripe API, are the date/times returned local time?

agile plover
#

Stripe API uses the unix timestamp (not local time)

river pewter
#

OK, I'm going to run a test

#

well that is it, but now need to understand the date/time conversion

agile plover
#

datetime conversions are my bane, i'm absolutely terrible with it

river pewter
#

what timezone is the Stripe UI?

agile plover
#

you mean your Dashboard?

river pewter
#

yes

#

I see a payment date of 9/28 1:14 PM

agile plover
#

there's a time zone field

river pewter
#

OK, I see it. The API is giving me a different time than what I see as the Time Zone, so is the API date/time all UTC?

agile plover
#

yes the API date/time is all UTC

river pewter
#

Alex

#

Can you confirm the Create Date Time of this PI: pi_3Jejt2G30Vl6ne6N0jUYEf9r

agile plover
#

1632849276

#

or in a more readable format : 2021-09-28 17:14:36

river pewter
#

I see the problem (on my end)

#

I put the date/time in DB without UTC syntax and when I parse it in C# it parses to my local date/time.

agile plover
#

aaaaah, it's great that you've managed to figure it out