Open cxp-13 opened 7 months ago
const moonLanding = new Date('2024-01-12');
// Milliseconds since Jan 1, 1970, 00:00:00.000 GMT console.log(moonLanding.getTime()); // output: 1705017600000
block.timestamp (uint): The timestamp of the current block, in seconds since Unix epoch
Correct approach!!!
Math.round(new Date(campaign.deadline) / 1000)
new Date(campaign.deadline).getTime()
There will be 3 more zeros!!!