RFC 822 default date

This commit is contained in:
Niko Abeler 2022-08-13 19:08:20 +02:00
parent bed274cbf6
commit e15268092a
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(time.RFC3339) + "\n"
initial_content += "date: " + time.Now().UTC().Format(time.RFC822) + "\n"
initial_content += "---\n"
initial_content += "\n"
initial_content += "Write your post here.\n"