diff --git a/http.go b/http.go index 854de95..67d0eec 100644 --- a/http.go +++ b/http.go @@ -166,3 +166,7 @@ func AddHeader(r *http.Request, key, val string) { func GetHeader(r *http.Request, key string) string { return r.Header.Get(key) } + +func GetClientAgentUTCOffset(req *http.Request) int64 { + return StringToInt64(GetHeader(req, "X-Timezone-Offset")) +} diff --git a/server.go b/server.go index a92c9b4..7e309db 100644 --- a/server.go +++ b/server.go @@ -17,7 +17,7 @@ type Server struct { UTCOffset int64 } -func NewServer(dsn, port, logDir string, utcOffset int64) (s *Server, err error) { +func NewODBCServer(dsn, port, logDir string, utcOffset int64) (s *Server, err error) { s = new(Server) s.Port = port