use local timezone
This commit is contained in:
parent
937b98b3cc
commit
3646a4697e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user