From 5be4cbbaa9065ea0149c6d0b4c58e4c7ae95d247 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Thu, 20 Sep 2007 20:38:20 +0000
Subject: [PATCH] Fixed an issue where the fixed time log rotation policy is not rotating the logs at the time configured. The rotation time was interpreted as UTC time instead of the local time zone.
---
opends/src/server/org/opends/server/loggers/TimeLimitRotationPolicy.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/loggers/TimeLimitRotationPolicy.java b/opends/src/server/org/opends/server/loggers/TimeLimitRotationPolicy.java
index e06966f..d900c7c 100644
--- a/opends/src/server/org/opends/server/loggers/TimeLimitRotationPolicy.java
+++ b/opends/src/server/org/opends/server/loggers/TimeLimitRotationPolicy.java
@@ -100,8 +100,8 @@
*/
public boolean rotateFile(MultifileTextWriter writer)
{
- long currTime = TimeThread.getTime();
- long currInterval = currTime - writer.getLastRotationTime();
+ long currInterval = TimeThread.getTime() -
+ writer.getLastRotationTime().getTimeInMillis();
if (debugEnabled())
{
--
Gitblit v1.10.0