# Issue with blog post dates showing as January 1, 0001

**URL:** <https://discourse.gohugo.io/t/issue-with-blog-post-dates-showing-as-january-1-0001/28065>\
**Category:** Uncategorized\
**Tags:** asciidoc\
**Created:** [September 8, 2020, 3:33pm UTC](https://discourse.gohugo.io/t/issue-with-blog-post-dates-showing-as-january-1-0001/28065 "2020-09-08T15:33:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![00krishna](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/00krishna/32/14017_2.png) [@00krishna](https://discourse.gohugo.io/u/00krishna)\
**Post date:** [September 8, 2020, 3:33pm UTC](https://discourse.gohugo.io/t/issue-with-blog-post-dates-showing-as-january-1-0001/28065/1 "2020-09-08T15:33:33Z")

</div>

Hey Folks, I think I saw another post about this issue, but I am not familiar enough the the technical details of Hugo yet to understand it. But the issue is that I am using the simple BeautifulHugo theme, and all of my posts are showing up on the main posts page with a published date of January 1, 0001. Is there a variable in the frontmatter or something that I have to set in order for that date to appear correctly?

I have a `date` variable in my frontmatter which is set correctly. Here is a picture of what the problem value looks like on the blog.

![Selection_006](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/1/14b2fa50045412896053a5b84bf95fa31d505341.jpeg)

Any suggestions would be appreciated. Thanks.

**UPDATED**  
Here is a copy of the `config.toml` file in case it helps with identifying the problem.

```auto
baseURL = "https://myblog.gitlab.io/my-blog"
languageCode = "en-us"
title = "Cool Stuff"
theme = "beautifulhugo"

pygmentsCodeFences = true
pygmentsUseClasses = true

[markup.asciidocext]
    extensions = ["asciidoctor-html5s",
                  "asciidoctor-diagram",
                  "asciidoctor-bibtex"] 
    workingFolderCurrent = true
    trace = true
    [markup.asciidocext.attributes]
        my-base-url = "https://myblog.gitlab.io/my-blog"
        my-attribute-name = "More stuff"
[markup]
    [markup.tableOfContent]
        endLevel = 3
        ordered = false
        startLevel = 2

[taxonomies]
  author = "authors"
  tag = "tags"
  category = "categories"

[params]
  dateFormat = "Jan 2, 2006"

```

---

<div class="post-metadata">

**Author:** ![sephore](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sephore/32/11673_2.png) [@sephore](https://discourse.gohugo.io/u/sephore)\
**Post date:** [September 8, 2020, 3:40pm UTC](https://discourse.gohugo.io/t/issue-with-blog-post-dates-showing-as-january-1-0001/28065/2 "2020-09-08T15:40:04Z")

</div>

Maybe? Not enough info.

> <https://gitlab.com/VincentTam/beautifulhugo/-/blob/dev/exampleSite/config.toml#L22>

It seems the theme has everything covered, from missing date (“IsZero”) to last mod, so… don’t really know.

---

<div class="post-metadata">

**Author:** ![00krishna](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/00krishna/32/14017_2.png) [@00krishna](https://discourse.gohugo.io/u/00krishna)\
**Post date:** [September 8, 2020, 3:47pm UTC](https://discourse.gohugo.io/t/issue-with-blog-post-dates-showing-as-january-1-0001/28065/3 "2020-09-08T15:47:16Z")

</div>

@sephore thanks so much for the suggestion. Yes, I have the `dateFormat` setting set in the `config.toml` file, just as in the example. I can update the original post with the full `config.toml`, as it is not very big. Would have been nice if it was that simple :). Not sure what the issue is. But thanks again for helping me debug.

---

<div class="post-metadata">

**Author:** ![sephore](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sephore/32/11673_2.png) [@sephore](https://discourse.gohugo.io/u/sephore)\
**Post date:** [September 8, 2020, 3:55pm UTC](https://discourse.gohugo.io/t/issue-with-blog-post-dates-showing-as-january-1-0001/28065/4 "2020-09-08T15:55:25Z")

</div>

Right, just found and cloned the repo. For example:

```auto
date: 2020-09-06T00:22:14-04:00 //

```

Removing the `"//"` should solve the problem.

---

<div class="post-metadata">

**Author:** ![00krishna](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/00krishna/32/14017_2.png) [@00krishna](https://discourse.gohugo.io/u/00krishna)\
**Post date:** [September 8, 2020, 4:01pm UTC](https://discourse.gohugo.io/t/issue-with-blog-post-dates-showing-as-january-1-0001/28065/5 "2020-09-08T16:01:18Z")

</div>

Oh man, it was that simple eh. I don’t even know how that `//` got in there. But this did work. Thanks so much for you help on this. I just figured that was part of the frontmatter template.

Thanks again.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [September 10, 2020, 4:01pm UTC](https://discourse.gohugo.io/t/issue-with-blog-post-dates-showing-as-january-1-0001/28065/6 "2020-09-10T16:01:20Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
