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

The .Format page should use a different date. #589

Closed
RichMorin opened this issue Sep 2, 2018 · 2 comments
Closed

The .Format page should use a different date. #589

RichMorin opened this issue Sep 2, 2018 · 2 comments

Comments

@RichMorin
Copy link

RichMorin commented Sep 2, 2018

The "Hugo Date and Time Templating Reference" section in the .Format page uses the date "2017-03-03T14:15:59-06:00". Because the month and day numbers are both 3, the reader is sometimes forced to guess which one is being displayed where.

For clarity, each portion of the date should have a different numeric value. For example:

2000-01-02T03:04:05-06:07
@StephenBrown2
Copy link
Contributor

2017-03-03T14:15:59-06:00 is in iso8601 format, so it should be pretty clear what the values are, but I would agree with using different values, as farther down the page, an example of Go's Date format string is used: https://gohugo.io/functions/format/#go-s-layout-string

Since HugoDocs uses hugo, could perhaps that string be printed using a template string, and updated on each build?

@stale
Copy link

stale bot commented Jan 2, 2019

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If you still think this is important, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Jan 2, 2019
@stale stale bot closed this as completed Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants