feat: add some relativedate error handling

This commit is contained in:
Xyphyn committed 2023-09-04 15:01:08 -07:00
1 parent d6b5bfe3bb
commit 6afe926d4d
7 files changed
+23 -7

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
export const publishedToDate = (published: string) =>
published.endsWith('Z') ? new Date(published) : new Date(`${published}Z`)