<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question JsonTreeReader changing time zones in NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374913#M242194</link>
    <description>&lt;P&gt;I have record from kafka like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"datetime": "2023-08-03 10:46:50", "long": 106.8451, "lat": -6.2146, "city": "Jakarta", "status": "unknown", "nickname": "unknown"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use Convertrecord JsonTreeReader with&amp;nbsp;&lt;SPAN&gt;Schema Access Strategy Infer Schema and to change Parquet before I stored in Hive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But in my table in Hive the datetime change &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from&amp;nbsp;2023-08-03 10:46:50 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to&amp;nbsp;2023-08-03 17:46:50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to Handle that, I want to stay with same kafka record? I live in GMT+7&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 03:12:48 GMT</pubDate>
    <dc:creator>Galih</dc:creator>
    <dc:date>2023-08-04T03:12:48Z</dc:date>
    <item>
      <title>JsonTreeReader changing time zones in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374913#M242194</link>
      <description>&lt;P&gt;I have record from kafka like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"datetime": "2023-08-03 10:46:50", "long": 106.8451, "lat": -6.2146, "city": "Jakarta", "status": "unknown", "nickname": "unknown"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use Convertrecord JsonTreeReader with&amp;nbsp;&lt;SPAN&gt;Schema Access Strategy Infer Schema and to change Parquet before I stored in Hive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But in my table in Hive the datetime change &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from&amp;nbsp;2023-08-03 10:46:50 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to&amp;nbsp;2023-08-03 17:46:50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to Handle that, I want to stay with same kafka record? I live in GMT+7&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 03:12:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374913#M242194</guid>
      <dc:creator>Galih</dc:creator>
      <dc:date>2023-08-04T03:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: JsonTreeReader changing time zones in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374974#M242216</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/32119"&gt;@VidyaSargur&lt;/a&gt;&amp;nbsp;can you help me?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2023 03:20:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374974#M242216</guid>
      <dc:creator>Galih</dc:creator>
      <dc:date>2023-08-05T03:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: JsonTreeReader changing time zones in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374982#M242224</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92128"&gt;@Galih&lt;/a&gt;, as far as I know, your date will be converted to GMT per default. You could try using an &lt;STRONG&gt;UpdateRecord&lt;/STRONG&gt; instead of an &lt;STRONG&gt;ConvertRecord&lt;/STRONG&gt; and add a property name "/YOUR_DATE_COLUMN_NAME", having the value: format( /YOUR_DATE_COLUMN_NAME, "yyyy/MM/dd/HH", "THE_TIMEZONE_YOU_ARE_IN"). This is what I am using right now to avoid this exact behavior, especially when working with different formats (JSON to AVRO, AVRO to CSV, etc)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:04:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374982#M242224</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-08-07T08:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: JsonTreeReader changing time zones in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374984#M242225</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp; Like this? I'm new for converting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-07 at 15.31.26.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38185i6950159D1386185B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-08-07 at 15.31.26.png" alt="Screenshot 2023-08-07 at 15.31.26.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:32:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374984#M242225</guid>
      <dc:creator>Galih</dc:creator>
      <dc:date>2023-08-07T08:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: JsonTreeReader changing time zones in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374992#M242231</link>
      <description>&lt;P&gt;yes, you can try like that or like :&lt;BR /&gt;format( /datetime, "yyyy/MM/dd/HH", "Asia/Jakarta") - but you will need to switch Replacement Value strategy, from Literal Value to Record Path Value.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 12:26:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JsonTreeReader-changing-time-zones-in-NIFI/m-p/374992#M242231</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-08-07T12:26:55Z</dc:date>
    </item>
  </channel>
</rss>

