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

Time of the blogs published is always "00:00:00" #348

Closed
utkarsh2102 opened this issue Jun 1, 2020 · 5 comments
Closed

Time of the blogs published is always "00:00:00" #348

utkarsh2102 opened this issue Jun 1, 2020 · 5 comments

Comments

@utkarsh2102
Copy link
Contributor

Hi,

It gets a little inconvenient to see that each of the blog gets published at "00:00:00".
Can this be fixed?
Or is there any workaround for it?

@clement-pannetier
Copy link
Contributor

Hi @utkarsh2102,

Can you explain more what's your problem? Are you talking about the default date value for new blog posts?

@utkarsh2102
Copy link
Contributor Author

Hiya,

Yeah, by default the time that appeared on my blogs was 00:00.
I just found out that we need to add the time with the date itself.

@utkarsh2102
Copy link
Contributor Author

On another note, can we have another variable, time, after date, which takes in the time explicitly?

@clement-pannetier
Copy link
Contributor

Yeah, by default the time that appeared on my blogs was 00:00.

The time is not displayed on the blog posts unless you change the dateFormat config parameter to this for example: 02 Jan 06 15:04 MST.

I think you're talking about the time displayed in the RSS feed, is that right ?
Also, if you run hugo new posts/filename.md, the date and time are automatically writed in the new post file.

On another note, can we have another variable, time, after date, which takes in the time explicitly?

For which purpose?

@utkarsh2102
Copy link
Contributor Author

Hey,

I think you're talking about the time displayed in the RSS feed, is that right ?

You are very right! 😄

Also, if you run hugo new posts/filename.md, the date and time are automatically writed in the new post file.

Aha, perfect! 💯

For which purpose?

I think I was using it wrong so far, thanks to you, I understood the right way 🚀

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