RFC 822 default date
This commit is contained in:
parent
bed274cbf6
commit
e15268092a
2
user.go
2
user.go
|
@ -100,7 +100,7 @@ func (user User) CreateNewPost(title string) (Post, error) {
|
||||||
initial_content := ""
|
initial_content := ""
|
||||||
initial_content += "---\n"
|
initial_content += "---\n"
|
||||||
initial_content += "title: " + title + "\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 += "\n"
|
initial_content += "\n"
|
||||||
initial_content += "Write your post here.\n"
|
initial_content += "Write your post here.\n"
|
||||||
|
|
Loading…
Reference in New Issue