feat: implement adding movie details from tmdb

This commit is contained in:
2023-08-01 03:15:15 +02:00
parent 3a5c5b4404
commit 01697a6686
9 changed files with 124 additions and 24 deletions

4
lib/string.ts Normal file
View File

@@ -0,0 +1,4 @@
export function formatDate(date: Date): string {
const options = { year: "numeric", month: "long", day: "numeric" } as const;
return new Intl.DateTimeFormat("en-US", options).format(date);
}