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

Prettier dates by default #10

Open
sarahmonster opened this issue Aug 28, 2019 · 3 comments
Open

Prettier dates by default #10

sarahmonster opened this issue Aug 28, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@sarahmonster
Copy link
Member

Ideally these would use a site config, but let's avoid showing this out of the box:

Screenshot 2019-08-28 at 17 21 47

BOOOOOOOOO.

I'm not sure if it'd be best to use GraphQL here or a third-party library.

https://www.gatsbyjs.org/docs/querying-with-graphql/#formatting-dates

@sarahmonster sarahmonster added the enhancement New feature or request label Aug 28, 2019
@tofumatt
Copy link
Member

A third-party will give us a lot of control and allow for nice, dynamic display of things like "X minutes ago" that actually update.

moment is the obvious choice but it's big and a bit unwieldy to work with. https://github.com/iamkun/dayjs looks nice, and there's also https://moment.github.io/luxon/ and something else I'm forgetting.

@sarahmonster
Copy link
Member Author

Cool, I'm down with using something different. I don't really have any special preference either way so I'm good with whatever you'd like to use! Of the three, maybe dayjs?

@tofumatt
Copy link
Member

tofumatt commented Aug 28, 2019 via email

@sarahmonster sarahmonster added this to the Refactor for blogs milestone Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants