From c89bca3fc75f888471f3b71858b45dd7ee152b96 Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Sat, 13 Aug 2022 19:15:34 +0200 Subject: [PATCH] four digit year #3 + README update --- README.md | 1 + user.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f5ef6ca..ceb591f 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Posts are Markdown files with a mandatory metadata head. ``` --- title: My new Post +date: 13 Aug 22 17:07 UTC aliases: - /my/new/post - /old_blog_path/ diff --git a/user.go b/user.go index 6f1b5fc..b664786 100644 --- a/user.go +++ b/user.go @@ -100,7 +100,7 @@ func (user User) CreateNewPost(title string) (Post, error) { initial_content := "" initial_content += "---\n" initial_content += "title: " + title + "\n" - initial_content += "date: " + time.Now().UTC().Format(time.RFC822) + "\n" + initial_content += "date: " + time.Now().UTC().Format("02 Jan 2006 15:04 MST") + "\n" initial_content += "---\n" initial_content += "\n" initial_content += "Write your post here.\n"