From 6277c0b8093a839f68475565e01b49a9117df7d9 Mon Sep 17 00:00:00 2001 From: dan-du-car Date: Thu, 9 May 2024 14:17:21 -0400 Subject: [PATCH] update lnow for tcr request --- src/cc/ws/CtrlTiles.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc/ws/CtrlTiles.java b/src/cc/ws/CtrlTiles.java index c0c30cde..55b4b826 100644 --- a/src/cc/ws/CtrlTiles.java +++ b/src/cc/ws/CtrlTiles.java @@ -158,7 +158,8 @@ public void init(ServletConfig oConfig) protected void doGet(HttpServletRequest oRequest, HttpServletResponse oResponse) throws ServletException, IOException { - long lNow = System.currentTimeMillis(); + TimeSource timeSrc = (TimeSource) this.getServletContext().getAttribute(TimeSource.class.getName()); + long lNow = timeSrc.currentTimeMillis(); String[] sUriParts = oRequest.getRequestURI().split("/"); int nZ = Integer.parseInt(sUriParts[sUriParts.length - 3]); int nX = Integer.parseInt(sUriParts[sUriParts.length - 2]);