changeset 1103:1fcf5c25b3bd

fix web logging timezone
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 11 Jun 2017 19:19:08 -0600
parents b1c3baf3aa46
children 772d16c89056
files src/luan/modules/http/Server.luan
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r b1c3baf3aa46 -r 1fcf5c25b3bd src/luan/modules/http/Server.luan
--- a/src/luan/modules/http/Server.luan	Sun Jun 04 19:26:27 2017 -0600
+++ b/src/luan/modules/http/Server.luan	Sun Jun 11 19:19:08 2017 -0600
@@ -13,6 +13,7 @@
 local logger = Logging.logger "http/Server"
 
 java()
+local TimeZone = require "java:java.util.TimeZone"
 local JavaServer = require "java:org.eclipse.jetty.server.Server"
 local NCSARequestLog = require "java:org.eclipse.jetty.server.NCSARequestLog"
 local DefaultHandler = require "java:org.eclipse.jetty.server.handler.DefaultHandler"
@@ -66,6 +67,7 @@
 
 Server.log = NCSARequestLog.new()
 Server.log.setExtended(false)
+Server.log.setLogTimeZone(TimeZone.getDefault().getID())
 Server.log_handler = RequestLogHandler.new()
 Server.log_handler.setRequestLog(Server.log)