LocalDateTime.now() has different levels of precision on Windows and Mac machine
The precision is different because LocalDateTime.now() uses a system default Clock. Obtains the current date-time from the system clock in the default time-zone. This will query the system clock in the default time-zone to obtain the current date-time. … The link in this Javadoc takes you to Clock.systemDefaultZone() which states (emphasis mine): Obtains a clock … Read more