Java 8 introduced the java.time package and since then it is recommended to use java.time classes instead of Date/Calendar etc. - your IDE hopefully warns you about this. ODF Toolkit should directly support java.time and mark the "old" methods as deprecated.
PR incoming.