Skip to content

Commit

Permalink
chore: temp error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
touchRED committed Mar 29, 2023
1 parent 290a37f commit bdda1bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cleaners/date-published.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function createDate(dateString, timezone, format) {
? dayjs.tz(dateString, format, timezone)
: dayjs.tz(dayjs(dateString).format('YYYY-MM-DD HH:mm:ss'), timezone);
} catch (error) {
console.log('error:', error);
// return an intentionally invalid dayjs object,
// in case the input needs to be cleaned first
return dayjs('');
Expand Down

0 comments on commit bdda1bb

Please sign in to comment.