diff --git a/src/graphql-fragments.js b/src/graphql-fragments.js index 1311fb8a..3ff3b0f2 100644 --- a/src/graphql-fragments.js +++ b/src/graphql-fragments.js @@ -71,7 +71,7 @@ export const SharedBetweenPostsAndEventsFragment = graphql` fields { key slug - date(formatString: "MMMM D, YYYY") + date } frontmatter { href diff --git a/src/templates/Event.js b/src/templates/Event.js index 5b926299..7b4d2186 100644 --- a/src/templates/Event.js +++ b/src/templates/Event.js @@ -1,4 +1,5 @@ import {graphql, Link} from 'gatsby'; +import moment from 'moment'; import {track, extract, mapNodeToProps} from '~/utilities'; import Img from 'gatsby-image'; import {Text, Meta, Layout, Nav, Button} from '~/components'; @@ -182,7 +183,7 @@ export default props => {