use UTC for new blog posts

This commit is contained in:
gutmet 2020-10-29 13:12:53 +01:00
parent 21feba10a9
commit a0581eec7e

View File

@ -44,7 +44,7 @@ func ensureDirectory(file string) {
}
func makePostFile(dirsuffix string, title string, content string) string {
now := time.Now()
now := time.Now().UTC()
file := filename(dirsuffix, title, now)
ensureDirectory(file)
post := post{}