1
0

Add workaround for timezones on windows (#151)

Add workaround for timezones on windows

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/151
This commit is contained in:
konrad
2020-03-09 22:41:08 +00:00
parent 7de26a462f
commit 4472020ee9
46 changed files with 1613 additions and 6966 deletions

View File

@ -17,6 +17,7 @@
package timeutil
import (
"4d63.com/tz"
"code.vikunja.io/api/pkg/config"
"encoding/json"
"time"
@ -43,7 +44,7 @@ func (ts *TimeStamp) MarshalJSON() ([]byte, error) {
return []byte("null"), nil
}
loc, err := time.LoadLocation(config.ServiceTimeZone.GetString())
loc, err := tz.LoadLocation(config.ServiceTimeZone.GetString())
if err != nil {
return nil, err
}