fix: remove debug message

This commit is contained in:
Xyphyn committed 2023-10-03 18:29:10 -07:00
1 parent 299fd9a7be
commit 5c90d88ee7
3 files changed
+4 -11

No files matched your search

+2 -9
View File
@@ -1,9 +1,2 @@
export const publishedToDate = (published: string): Date => {
console.log(published)
published.endsWith('Z')
? console.log('includes a z. Not doing anything.')
: console.log("doesn't include a z. adding it.")
return published.endsWith('Z')
? new Date(published)
: new Date(`${published}Z`)
}
export const publishedToDate = (published: string): Date =>
published.endsWith('Z') ? new Date(published) : new Date(`${published}Z`)