How to format LocalDateTime with time zone offset
<p>I tried to do it like this:</p>

<pre><code>    ZoneOffset zoneOffset = ZoneOffset.ofHours(3);
    DateTimeFormatter fmt = DateTimeFormatter.ofPattern("HH:mm:ss");

    LocalDateTime dateTime = LocalDateTime.now();
    System.out.println("dateTimeWithoutOffset: " + fmt.format(dateTime));

    ZonedDateTime zonedDateTime = ZonedDateTime.of(dateTime, zoneOffset);
    System.out.println("dateWithOffset: " + fmt.format(zonedDateTime));
</code></pre>

<p>But I get the same output:</p>

<pre><code>dateTimeWithoutOffset: 18:11:06
dateTimeWithOffset: 18:11:06
</code></pre>

<p>I want to see something like this:</p>

<pre><code>dateTimeWithoutOffset: 18:11:06
dateTimeWithOffset: 21:11:06
</code></pre>

<p>What am I doing wrong?</p>