Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

284 B
Raw Blame
const NEW_SIGNUP_WINDOW_MS = 30 * 60 * 1000;

export function isNewSignup(createdAt: Date | string, now = Date.now()) {
  const created = new Date(createdAt).getTime();
  if (Number.isNaN(created)) return false;
  return now - created >= 0 && now - created <= NEW_SIGNUP_WINDOW_MS;
}