title: Is there any way to convert ZoneId to ZoneOffset in Java 8?
body: <p>I have an epoch second and a <em>zoneId</em> (see <code>method1</code> below).</p>
  <p>It can be convert to <code>LocalDateTime</code> with system default zoneId, but I don't find the way to convert epoch second to <code>LocalDateTime</code> (see  <code>method2</code> below), because there is no <code>ZoneOffset.systemDefault</code>. I think it's obscure.</p>
  <pre><code>import java.time.{Instant, LocalDateTime, ZoneId, ZoneOffset}
  
  val epochSecond = System.currentTimeMillis() / 1000
  
  // method1
  LocalDateTime.ofInstant(Instant.ofEpochSecond(epochSecond), ZoneId.systemDefault())
  
  // method2
  LocalDateTime.ofEpochSecond(epochSecond, 0, ZoneOffset.MAX)
  </code></pre>
  <hr />
  <h2>NOTE</h2>
  <p>The source code presented above is <a href="https://www.scala-lang.org/" rel="noreferrer">Scala</a>.</p>