Confusion in java.Clock, systemDefaultZone() returning UTC time
问题 I am trying to understand why the following java.time.Clock is returning UTC time instead of the local time zone (EST). C:\Users\Felipe>scala Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_65). Type in expressions for evaluation. Or try :help. scala> import java.time._ import java.time._ scala> ZoneId.systemDefault() res0: java.time.ZoneId = America/New_York scala> val clock = Clock.systemDefaultZone() clock: java.time.Clock = SystemClock[America/New_York] scala> clock