Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Date format of posts and pages is different #98

Closed
CHH opened this issue Oct 4, 2017 · 1 comment
Closed

Date format of posts and pages is different #98

CHH opened this issue Oct 4, 2017 · 1 comment

Comments

@CHH
Copy link
Contributor

CHH commented Oct 4, 2017

The format of a content type with isPost: true follows ISO8601. The date that was determined by the file's ctime, when the content type is not a post, doesn't follow the same format, but dd-mm-YYYY instead.

Relevant line:

cached.date = dateFns.format(stats.ctime, 'MM-DD-YYYY')

Is this by design, or a bug?

This bug report is available on Nuxt.js community (#c84)
@alidcast
Copy link
Contributor

alidcast commented Oct 4, 2017

Yea that's an oversight, they should follow the same format - YYYY-MM-DD

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants