Closed ericallam closed 5 months ago
Currently timestamps are hydrated to Dates using the following function:
export const toDateTime = (secs: number) => { var t = new Date('1970-01-01T00:30:00Z'); // Unix epoch start. t.setSeconds(secs); return t; };
A couple issues here:
new Date(secs * 1000)
https://github.com/vercel/nextjs-subscription-payments/pull/278
Currently timestamps are hydrated to Dates using the following function:
A couple issues here:
new Date(secs * 1000)