Utils.LOGGER.error(String.valueOf(date.getTime()));
Utils.LOGGER.error(date.toString());
Utils.LOGGER.error(Instant.ofEpochSecond(date.getTime()).toString());
above prints:
1717249769326
Sat Jun 01 16:49:29 EEST 2024
+56387-06-25T00:48:46Z
I don't understand why making an Instant or a new Date based off getTime() gives such a weird year, hour, etc