#beardman-timestamp

1 messages · Page 1 of 1 (latest)

thick willow
#

those are correct unix timestamps for a time earlier today

#

my bet is that you're converting to a time with a converter which expects the timestamp to be millis since the unix epoch, not seconds since the unix epoch

#

(this is standard for javascript, java, and probably other places besides)

marble barn
#

hmm, I used this site for a quick conversion check:

#

also:

new Date(1639259123)
Tue Jan 20 1970 01:20:59 GMT+0200 (South Africa Standard Time)
thick willow
#

yeah tbc

#

that site expects to be given a timestamp denominated in millis since the unix epoch

#

stripe timestamps are unix timestamps, which are seconds since the unix epoch

#

you'd need to multiply by 1000 first, or use a conversion function which expects a unix timestamp