use local timezone
This commit is contained in:
parent
937b98b3cc
commit
3646a4697e
@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"time"
|
||||||
|
|
||||||
"code.ivysaur.me/yatwiki3"
|
"code.ivysaur.me/yatwiki3"
|
||||||
)
|
)
|
||||||
@ -19,6 +20,7 @@ func main() {
|
|||||||
opts := yatwiki3.DefaultOptions()
|
opts := yatwiki3.DefaultOptions()
|
||||||
opts.DBFilePath = *dbPath
|
opts.DBFilePath = *dbPath
|
||||||
opts.FaviconFilePath = *faviconPath
|
opts.FaviconFilePath = *faviconPath
|
||||||
|
opts.Timezone = time.Local.String()
|
||||||
|
|
||||||
ws, err := yatwiki3.NewWikiServer(opts)
|
ws, err := yatwiki3.NewWikiServer(opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user