Does DateTimeFormatter Have Anything Like The Joda's DateTimeFormatter#withOffsetParsed() method?
<p>I've got a problem with the new Java Date-API, especially the <code>java.time.DateTimeFormatter</code>.</p>

<p>I'm looking for a way to add the TimeZone-Offset to a given time. </p>

<p>e.g.</p>

<pre><code> "2016-05-27 14:22:00 UTC+2" 
</code></pre>

<p>should be parsed to </p>

<pre><code> "27.05.2016 16:22:00" 
</code></pre>

<p>(using the pattern "dd.MM.yyyy HH:mm:ss")</p>

<p>This is my problematic code: </p>

<pre><code>LocalDateTime time = LocalDateTime.now();
LOG.debug(time.format(DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm:ss"));
</code></pre>

<p>The formatting results in a time-string which matches the given pattern, but without considering the offset of the local TimeZone.</p>