Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

271 B
Raw Blame
import dayjs from 'dayjs';
import { getDayjsLocale } from './dayjs-locale';

export function formatDateTime(ts: number): string {
  const locale = getDayjsLocale();
  const d = locale ? dayjs(ts).locale(locale) : dayjs(ts);
  return d.format('MMM D, YYYY β€” h:mm A');
}