private static void resetTime(Date date) {
        long msec = date.getTime();
        msec = (msec / 1000) * 1000;
        date.setTime(msec);

        // Daylight savings time occurs at midnight in some time zones, so we
        // reset the time to noon instead.
        date.setHours(0);
        date.setMinutes(0);
        date.setSeconds(0);
    }
Resets the date to have no time modifiers.
stroom-core-client-widget/src/main/java/stroom/widget/customdatebox/client/CustomCalendarModel.java