function rssDate()

in lib/rssfeed.js [65:72]


function rssDate (d) {
  const date = new Date(d)
  const month = date.getMonth() + 1
  const monthd = (month < 10 ? '0' : '') + month
  const dayinmonth = (date.getDate() < 10 ? '0' : '') + date.getDate()
  //we need this kind of format 2023-09-01T00:00:00Z
  return date.getFullYear() + '-' + monthd + '-' + dayinmonth + 'T00:00:00Z'
}