text: const { DateTime } = require('luxon')
  
  // Add a friendly date filter to nunjucks.
  // Defaults to format of LLLL d, y unless an
  // alternate is passed as a parameter.
  // {{ date | friendlyDate('OPTIONAL FORMAT STRING') }}
  // List of supported tokens: https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens
  
  module.exports = (dateObj, format = 'LLL d, y') =>
    DateTime.fromJSDate(dateObj, {
      zone: 'UTC'
    }).toFormat(format)
  