                                                  (+ total-bytes-read bytes-read)))))
               (recur (+ total-bytes-read bytes-read)))))))))
 
+(defconfig time-zone
+  "The time zone where the web server is running. Needed because getting the time zone using
+   java.util.TimeZone is not returning the correct information on EC2 instances running in NGAP.
+
+   The default value of \"America/New_York\" will work for all of our NGAP EC2 instances (they are
+   all in US_EAST_1) and for developers working on the east coast.
+
+   If you enable access logging locally and need to set a different time zone you can figure out
+   the string to set by running:
+
+   (.getID (java.util.TimeZone/getDefault)))"
+  {:default "America/New_York"})
+
 (defn create-access-log-handler
   "Setup access logging for each application. Access log entries will go to stdout similar to
   application logging. As a result the access log entries will be in the same log as the

   [ring.adapter.jetty :as jetty])
  (:import
   (java.io ByteArrayInputStream InputStream)
   (java.util TimeZone)
   (org.eclipse.jetty.server Server NCSARequestLog Connector HttpConnectionFactory)
   (org.eclipse.jetty.server.handler RequestLogHandler)
   (org.eclipse.jetty.servlets.gzip GzipHandler)))

    (.setRequestLog
      (doto (NCSARequestLog.)
        (.setLogLatency true)
        (.setLogTimeZone (time-zone))
        (.setLogDateFormat "yyyy-MM-dd hh:mm:ss.SSS")))))

(defn- create-gzip-handler
