diff --git a/src/main/java/org/mariadb/jdbc/internal/queryresults/resultset/MariaSelectResultSet.java b/src/main/java/org/mariadb/jdbc/internal/queryresults/resultset/MariaSelectResultSet.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/mariadb/jdbc/internal/queryresults/resultset/MariaSelectResultSet.java
+++ b/src/main/java/org/mariadb/jdbc/internal/queryresults/resultset/MariaSelectResultSet.java
@@ -1654,6 +1654,7 @@ public class MariaSelectResultSet implements ResultSet {
                         Calendar calendar = options.useLegacyDatetimeCode ? Calendar.getInstance() : cal;
 
                         synchronized (calendar) {
+                            calendar.clear();
                             calendar.set(Calendar.YEAR, year);
                             calendar.set(Calendar.MONTH, month - 1);
                             calendar.set(Calendar.DAY_OF_MONTH, day);
[CONJ-<I>] Clear Calendar instance before using it