From 3646a4697eae99f6b759c3d92ae4b5f5fe05aec7 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 9 Jul 2017 18:48:59 +1200 Subject: [PATCH] use local timezone --- cmd/yatwiki-server/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/yatwiki-server/main.go b/cmd/yatwiki-server/main.go index f579777..5fb35ed 100644 --- a/cmd/yatwiki-server/main.go +++ b/cmd/yatwiki-server/main.go @@ -5,6 +5,7 @@ import ( "fmt" "net/http" "os" + "time" "code.ivysaur.me/yatwiki3" ) @@ -19,6 +20,7 @@ func main() { opts := yatwiki3.DefaultOptions() opts.DBFilePath = *dbPath opts.FaviconFilePath = *faviconPath + opts.Timezone = time.Local.String() ws, err := yatwiki3.NewWikiServer(opts) if err != nil {