<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Illegal instant due to time zone offset transition]]></title><description><![CDATA[<p dir="auto">Hey, hopefully this is a quick question. I'm trying to run a Data File CSV importer. I am importing data to a single point and it's all hourly data. When I tried to run the simple imported against my CSV I got this error</p>
<pre><code> org.joda.time.IllegalInstantException: Cannot parse "11-Mar-18 2": Illegal instant due to time zone offset transition (America/Toronto)
</code></pre>
<p dir="auto">I've googled around and I'm not quite sure I understand what the error is. Is it because 2am does not exist on that day due to time change? Hmm. If that's the case can I just have this thing skip it somehow?</p>
]]></description><link>https://forum.mango-os.com/topic/3569/illegal-instant-due-to-time-zone-offset-transition</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 03:19:07 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3569.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Jun 2018 22:29:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Illegal instant due to time zone offset transition on Tue, 26 Jun 2018 21:08:20 GMT]]></title><description><![CDATA[<p dir="auto">................ yes?....</p>
<p dir="auto">Thank you :)</p>
<p dir="auto">I got around it by putting IllegalArgumentException since Instant extends it, but I will do it properly now</p>
]]></description><link>https://forum.mango-os.com/post/19022</link><guid isPermaLink="true">https://forum.mango-os.com/post/19022</guid><dc:creator><![CDATA[psysak]]></dc:creator><pubDate>Tue, 26 Jun 2018 21:08:20 GMT</pubDate></item><item><title><![CDATA[Reply to Illegal instant due to time zone offset transition on Tue, 26 Jun 2018 20:47:47 GMT]]></title><description><![CDATA[<p dir="auto">Did you put</p>
<pre><code>import org.joda.time.IllegalInstantException;
</code></pre>
<p dir="auto">around the other import statements at the top of the class?</p>
]]></description><link>https://forum.mango-os.com/post/19021</link><guid isPermaLink="true">https://forum.mango-os.com/post/19021</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 26 Jun 2018 20:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to Illegal instant due to time zone offset transition on Tue, 26 Jun 2018 20:38:14 GMT]]></title><description><![CDATA[<p dir="auto">Interesting, can't compile cause it doesn't seem to understand IllegalInstantException</p>
]]></description><link>https://forum.mango-os.com/post/19020</link><guid isPermaLink="true">https://forum.mango-os.com/post/19020</guid><dc:creator><![CDATA[psysak]]></dc:creator><pubDate>Tue, 26 Jun 2018 20:38:14 GMT</pubDate></item><item><title><![CDATA[Reply to Illegal instant due to time zone offset transition on Tue, 12 Jun 2018 20:53:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phildunlap" aria-label="Profile: phildunlap">@<bdi>phildunlap</bdi></a> Nice!</p>
]]></description><link>https://forum.mango-os.com/post/18863</link><guid isPermaLink="true">https://forum.mango-os.com/post/18863</guid><dc:creator><![CDATA[psysak]]></dc:creator><pubDate>Tue, 12 Jun 2018 20:53:52 GMT</pubDate></item><item><title><![CDATA[Reply to Illegal instant due to time zone offset transition on Tue, 12 Jun 2018 16:52:31 GMT]]></title><description><![CDATA[<p dir="auto">You can easily skip it if you can modify the CSV importer, you would just put the call to the DateTimeFormat inside a try / catch instead of letting it get through, i.e.</p>
<pre><code>long time;
try {
  time = dtf.parseDateTime(row[0]).getMillis();
} catch(IllegalInstantException e) {
  return; //Don't let the exception escape
}
</code></pre>
]]></description><link>https://forum.mango-os.com/post/18848</link><guid isPermaLink="true">https://forum.mango-os.com/post/18848</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 12 Jun 2018 16:52:31 GMT</pubDate></item><item><title><![CDATA[Reply to Illegal instant due to time zone offset transition on Tue, 12 Jun 2018 16:45:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/psysak" aria-label="Profile: psysak">@<bdi>psysak</bdi></a> said in <a href="/post/18829">Illegal instant due to time zone offset transition</a>:</p>
<blockquote>
<p dir="auto">Is it because 2am does not exist on that day due to time change?</p>
</blockquote>
<p dir="auto">Correct. There is no 2am on the 11th. It jumps straight to 3am.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/psysak" aria-label="Profile: psysak">@<bdi>psysak</bdi></a> said in <a href="/post/18829">Illegal instant due to time zone offset transition</a>:</p>
<blockquote>
<p dir="auto">If that's the case can I just have this thing skip it somehow?</p>
</blockquote>
<p dir="auto">I dont think so. Can you delete it from the CSV?</p>
]]></description><link>https://forum.mango-os.com/post/18847</link><guid isPermaLink="true">https://forum.mango-os.com/post/18847</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 12 Jun 2018 16:45:44 GMT</pubDate></item></channel></rss>