Bug fix: convert all Java.sql.Date to Timestamp to store the date and
hour correctly in the database.