Fixing test failures due to time differences in DateUtils seen on MacOS.
authorankitkumar2711 <ak.ankitkumar@gmail.com>
Thu, 28 Nov 2013 13:44:52 +0000 (14:44 +0100)
committerankitkumar2711 <ak.ankitkumar@gmail.com>
Thu, 28 Nov 2013 13:44:52 +0000 (14:44 +0100)
core/src/main/java/org/apache/metamodel/util/DateUtils.java

index 31af2f9..382848a 100644 (file)
@@ -48,6 +48,7 @@ public final class DateUtils {
                c.set(Calendar.MINUTE, 0);
                c.set(Calendar.SECOND, 0);
                c.set(Calendar.MILLISECOND, 0);
+               c.set(Calendar.AM_PM, 0);
                return c.getTime();
        }
 
@@ -58,7 +59,7 @@ public final class DateUtils {
                c.set(Calendar.MINUTE, 0);
                c.set(Calendar.SECOND, 0);
                c.set(Calendar.MILLISECOND, 0);
-
+               c.set(Calendar.AM_PM, 0);
                return c.getTime();
        }