From 7ddafdffe44b7bc30e660defc1588d8d1ab2acbb Mon Sep 17 00:00:00 2001
From: remi cresson <remi.cresson@teledetection.fr>
Date: Mon, 2 Oct 2017 14:56:23 +0200
Subject: [PATCH] ENH: do not reject dates having the same day

---
 include/otbDates.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/otbDates.h b/include/otbDates.h
index 8ab3762..a94b0d7 100644
--- a/include/otbDates.h
+++ b/include/otbDates.h
@@ -124,7 +124,7 @@ DatesType GetDatesFromStringVector(std::vector<std::string> & list, bool check_o
     {
       for (unsigned int i = 0 ; i < dates.size()-1 ; i++)
         {
-          if (dates[i+1].julianday <= dates[i].julianday)
+          if (dates[i+1].julianday < dates[i].julianday)
             {
               itkGenericExceptionMacro("Date " << i << " is older than date " << (i+1) << " !");
             }
-- 
GitLab