0

Java 8 – Get my current timezone using ZonedDateTime

ZonedDateTime

In Java 8, it is possible and very convenient to determine your current timezone using ZonedDateTime.

This will display Asia/Singapore.