title: Java 8 equality of UTC and Zulu time?
body: <p>As far I could research, UTC and Zulu are the same. However I'm running in difficulties comparing two ZonedDateTimes I receive from different sources in my code.
  The following code illustrates the problem:</p>
  
  <pre><code>@Test
  public void equalsOnTimezone() throws Exception {
      ZonedDateTime zdtUtc = ZonedDateTime.of(2015, 2, 1, 14, 30, 0, 0, ZoneId.of("UTC"));
      ZonedDateTime zdtZ = ZonedDateTime.of(2015, 2, 1, 14, 30, 0, 0, ZoneId.of("Z"));
      assertEquals(zdtUtc, zdtZ); // will fail
  }
  </code></pre>
  
  <p>The problem:</p>
  
  <pre><code>java.lang.AssertionError: expected:&lt;2015-02-01T14:30Z[UTC]&gt; but was:&lt;2015-02-01T14:30Z&gt;
  </code></pre>
  
  <p>And what will be the correct way to create and compare UTC based values then?</p>
  
  <p>According to W3C <a href="http://www.w3.org/TR/NOTE-datetime">Date and Time Formats</a>:</p>
  
  <blockquote>
    <p>Times are expressed in UTC (Coordinated Universal Time), with a special UTC designator ("Z").</p>
  </blockquote>