Convert LocalDateTime to LocalDateTime in UTC

I personally prefer

LocalDateTime.now(ZoneOffset.UTC);

as it is the most readable option.

Leave a Comment