Social data
Convert export timestamps from seconds to milliseconds
The checker interprets its relationship timestamp fields as Unix seconds and multiplies them by 1000 for JavaScript Date. Keep the unit explicit when inspecting a compatible export.
Worked example
Node.js example · save as example.mjs and run node example.mjs
const unixSeconds = 1700000000;
const date = new Date(unixSeconds * 1000);
console.log(date.toISOString());
console.log(new Date(unixSeconds).getUTCFullYear());How it works
Date expects epoch milliseconds, while the supported fixture field uses seconds. Omitting the conversion places a modern timestamp near the beginning of 1970. ISO output is useful for debugging because it displays an explicit UTC instant.
Limits and mistakes
The timestamp’s presence and precise platform meaning depend on the export schema. Do not reinterpret it as an unfollow time or complete interaction history. Local date display can differ by time zone even when the instant is correct.
Check the result
Expect 2023-11-14T22:13:20.000Z and then 1970. Check the documented unit before using magnitude-based guesses on an unfamiliar export.
Sources
Reference documentation for the behavior used in this guide: