|
|
@ -120,6 +120,7 @@ func (s *Session) Set(key string, value string) (string, error) {
|
|
|
|
return "", errors.New("Unknown session property")
|
|
|
|
return "", errors.New("Unknown session property")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TimezoneToLocation tries to convert config timezone to location
|
|
|
|
func (s *Session) TimezoneToLocation() *time.Location {
|
|
|
|
func (s *Session) TimezoneToLocation() *time.Location {
|
|
|
|
time, err := time.Parse("-07:00", s.Timezone)
|
|
|
|
time, err := time.Parse("-07:00", s.Timezone)
|
|
|
|
if err == nil {
|
|
|
|
if err == nil {
|
|
|
|