Java 8 Setting global time formatters
<p>I want to set my own DateTimeFormatter as the global formatter. When I do the following line:</p>

<pre><code>ZonedDateTime.now();
</code></pre>

<p>I get:</p>

<pre><code>2016-03-30T08:58:54.180-06:00[America/Chicago]
</code></pre>

<p>If I do this:</p>

<pre><code>ZonedDateTime.now().format(DateTimeFormatter.RFC_1123_DATE_TIME)
</code></pre>

<p>I get:</p>

<pre><code>Wed, 30 Mar 2016 9:00:06 -0600
</code></pre>

<p>I want what's printed above but with am/pm so I made my custom formatter and printed out the time like so:</p>

<pre><code>DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("EEE, dd MMM yyyy HH:mm:ss a Z");

ZonedDateTime.now().format(FORMATTER);
</code></pre>

<p>Which gave me:</p>

<pre><code>Wed, 30 Mar 2016 9:00:06 AM -0600
</code></pre>

<p>But I use this <code>.now()</code> method everywhere for logging purposes and I dont want to define the formatter everywhere in the code. Is there a way to configure the formatter as the default format to use when calling the <code>.now()</code> method? I'm thinking like spring bean configuration method or something.....</p>