We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 290a37f commit bdda1bbCopy full SHA for bdda1bb
src/cleaners/date-published.js
@@ -50,6 +50,7 @@ export function createDate(dateString, timezone, format) {
50
? dayjs.tz(dateString, format, timezone)
51
: dayjs.tz(dayjs(dateString).format('YYYY-MM-DD HH:mm:ss'), timezone);
52
} catch (error) {
53
+ console.log('error:', error);
54
// return an intentionally invalid dayjs object,
55
// in case the input needs to be cleaned first
56
return dayjs('');
0 commit comments