adjusted time format to rss validator

This commit is contained in:
Niko Abeler 2022-08-16 21:16:14 +02:00
parent c6ab7227d8
commit 54e6bc907e
1 changed files with 1 additions and 1 deletions

View File

@ -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("02 Jan 2006 15:04 MST") + "\n"
initial_content += "date: " + time.Now().UTC().Format(time.RFC1123Z) + "\n"
initial_content += "---\n"
initial_content += "\n"
initial_content += "Write your post here.\n"