aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-12 03:24:35 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-12 03:24:35 +0300
commit0274f474338fad09b1414a608aad4a077a45453d (patch)
treee5703219d8ba77658ab3066d243b71dd7fb3bb47
parent74a872a30bf023cf37d9d3d30e28c25d84c69ffe (diff)
lint
-rw-r--r--persistence/sessions.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/persistence/sessions.go b/persistence/sessions.go
index efb32d3..66857f1 100644
--- a/persistence/sessions.go
+++ b/persistence/sessions.go
@@ -120,6 +120,7 @@ func (s *Session) Set(key string, value string) (string, error) {
return "", errors.New("Unknown session property")
}
+// TimezoneToLocation tries to convert config timezone to location
func (s *Session) TimezoneToLocation() *time.Location {
time, err := time.Parse("-07:00", s.Timezone)
if err == nil {