fec5318e91
* remove old buttercms project files * Updated .gitignore * Add new buttercms files * Add readme and remove name from package.json * fix linting error * Fix eslint * Update examples/cms-buttercms/.gitignore Co-authored-by: Lee Robinson <me@leerob.io> * renamed .env.sample > .env.local.example * remove dangerously allow svg * Update examples/cms-buttercms/package.json Co-authored-by: Lee Robinson <me@leerob.io>
6 lines
209 B
JavaScript
6 lines
209 B
JavaScript
import { parseISO, format } from 'date-fns'
|
|
|
|
export default function HumanDate({ dateString }) {
|
|
const date = parseISO(dateString)
|
|
return <time dateTime={dateString}>{format(date, 'MMM d, yyyy')}</time>
|
|
}
|