Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meetup Demo: minor date-fns usage fix #3079

Merged
merged 2 commits into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/polite-gorillas-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystonejs/demo-project-meetup': patch
---

Fixed a date-fns warning about string arguments.
2 changes: 1 addition & 1 deletion demo-projects/meetup/site/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const {
} = getConfig();

// Check if date is in future or past
export const isInFuture = date => isFuture(date);
export const isInFuture = date => isFuture(parseISO(date));

// Pretty date formatting
export const formatFutureDate = date => format(parseISO(date), 'iii d MMM, h:mm a');
Expand Down