Skip to content

Commit

Permalink
Fix issue #84
Browse files Browse the repository at this point in the history
  • Loading branch information
eh3rrera committed Aug 30, 2019
1 parent 693a6ac commit 94b7a85
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ch22.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,6 @@ <h2>Daylight savings</h2>

<p><code class="java hljs"><span class="hljs-number">2015</span>-<span class="hljs-number">03</span>-<span class="hljs-number">29</span>T02:<span class="hljs-number">30</span>+<span class="hljs-number">02</span>:<span class="hljs-number">00</span>[UTC+<span class="hljs-number">02</span>:<span class="hljs-number">00</span>] <span class="hljs-number">2015</span>-<span class="hljs-number">03</span>-<span class="hljs-number">29</span>T02:<span class="hljs-number">30</span>+<span class="hljs-number">02</span>:<span class="hljs-number">00</span></code></p>

<p>When DST ends, something similar happens</p>

<p><code class="java hljs">LocalDateTime ldt = LocalDateTime.of(<span class="hljs-number">2015</span>, <span class="hljs-number">10</span>, <span class="hljs-number">25</span>, <span class="hljs-number">3</span>, <span class="hljs-number">30</span>);<br />
System.out.println(ldt);</code></p>

<p>The result will be:</p>

<p><code class="java hljs"><span class="hljs-number">2015</span>-<span class="hljs-number">10</span>-<span class="hljs-number">25</span>T02:<span class="hljs-number">30</span></code></p>

<p>When we create an instance of <code>ZonedDateTime</code> for Italy, we have to add an hour to see the effect (otherwise we we'll be creating the <code>ZonedDateTime</code> at 3:00 of the new time):</p>

<p><code class="java hljs">ZonedDateTime zdt = ZonedDateTime.of(<br />
Expand Down

0 comments on commit 94b7a85

Please sign in to comment.