use local timezone

This commit is contained in:
mappu 2017-07-09 18:48:59 +12:00
parent 937b98b3cc
commit 3646a4697e

View File

@ -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 {