From 91c9fb8ba3e0de5f63ab891baf936b801a7aa949 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Mon, 05 Jul 2010 12:12:23 +0000
Subject: [PATCH] Fix for issue #4572. The duplicated recurring tasks were due to milliseconds date differences between iterations.

---
 opends/src/server/org/opends/server/backends/task/RecurringTask.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/task/RecurringTask.java b/opends/src/server/org/opends/server/backends/task/RecurringTask.java
index 8c26fe5..16b4ed9 100644
--- a/opends/src/server/org/opends/server/backends/task/RecurringTask.java
+++ b/opends/src/server/org/opends/server/backends/task/RecurringTask.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2006-2009 Sun Microsystems, Inc.
+ *      Copyright 2006-2010 Sun Microsystems, Inc.
  */
 package org.opends.server.backends.task;
 import java.text.SimpleDateFormat;
@@ -608,6 +608,7 @@
     calendar.setFirstDayOfWeek(GregorianCalendar.SUNDAY);
     calendar.add(GregorianCalendar.MINUTE, 1);
     calendar.set(GregorianCalendar.SECOND, 0);
+    calendar.set(GregorianCalendar.MILLISECOND, 0);
     calendar.setLenient(false);
 
     // Weekday

--
Gitblit v1.10.0