Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

455 B
Raw Blame
/** Keep the recording's local time when browsing dates, including daylight-saving changes. */
export function shiftCalendarDay(at: number, days: number): number {
  const date = new Date(at)
  date.setDate(date.getDate() + days)
  return date.getTime()
}
export function nearestEvents<T extends { start: number }>(events: T[], at: number): T[] {
  return [...events].sort((a, b) => Math.abs(a.start - at) - Math.abs(b.start - at) || a.start - b.start)
}