<?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>topic Re: Record time in correct time zone in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768019#M2983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whitney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Online stores datetime information as UTC timestamps - see&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2016/04/17/dates-and-time-in-survey123-for-arcgis"&gt;Dates and Time in Survey123 for ArcGIS&lt;/A&gt;. &amp;nbsp;Web applications should automatically adjust the time to display in your time zone; some desktop applications like ArcGIS Pro do not. &amp;nbsp;Using Survey123 Connect, you can get the device's offset from UTC using the&amp;nbsp;&lt;SPAN style="color: #4c4c4c;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;pulldata("@property", 'utcoffset')&lt;/SPAN&gt; function, which could then calculate a 'local' time value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2019 18:01:30 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2019-03-27T18:01:30Z</dc:date>
    <item>
      <title>Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768018#M2982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When collecting data via my Survey123 with a field type of dateTime and bind::esri:fieldType of esriFieldTypeDate, the time displays correctly, but is recorded 4 hours different (presumably UTC). How do I get the recorded data to reflect the correct time zone? Do I need to record it in a different field of type calculate with something like now().toLocaleString or now()+int(2400) (2400 because 60*4hours)? I would think this would be a common question, but can't find it anywhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 17:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768018#M2982</guid>
      <dc:creator>WhitneyWeber</dc:creator>
      <dc:date>2019-03-27T17:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768019#M2983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whitney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Online stores datetime information as UTC timestamps - see&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2016/04/17/dates-and-time-in-survey123-for-arcgis"&gt;Dates and Time in Survey123 for ArcGIS&lt;/A&gt;. &amp;nbsp;Web applications should automatically adjust the time to display in your time zone; some desktop applications like ArcGIS Pro do not. &amp;nbsp;Using Survey123 Connect, you can get the device's offset from UTC using the&amp;nbsp;&lt;SPAN style="color: #4c4c4c;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;pulldata("@property", 'utcoffset')&lt;/SPAN&gt; function, which could then calculate a 'local' time value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 18:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768019#M2983</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-03-27T18:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768020#M2984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply, but I must have something wrong in what I added because my survey is now stuck 'Publishing' in the first stage of 'Getting form information'.&lt;/P&gt;&lt;P&gt;I kept the original field - name:visit_date, type: dateTime, bind::esri:fieldType: esriFieldTypeDate&lt;/P&gt;&lt;P&gt;I added a field - name: visit_date_local, type: calculate, calculation: pulldata("@visit_date", 'utcoffset'), bind::esri:fieldType: esriFieldTypeDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I misinterpret your instructions or am I just having bad luck with the publishing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get it to publish? Just delete the survey and build a new one from the spreadsheet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whitney&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 19:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768020#M2984</guid>
      <dc:creator>WhitneyWeber</dc:creator>
      <dc:date>2019-03-27T19:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768021#M2985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot to mention that I have visit_date with a default value of now(). I did not repeat that in the visit_date_local field, assuming it pulls it from the visit_date field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 19:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768021#M2985</guid>
      <dc:creator>WhitneyWeber</dc:creator>
      <dc:date>2019-03-27T19:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768022#M2986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot to mention that I have visit_date with a default value of now(). I did not repeat that in the visit_date_local field, assuming it pulls it from the visit_date field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 19:12:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768022#M2986</guid>
      <dc:creator>WhitneyWeber</dc:creator>
      <dc:date>2019-03-27T19:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768023#M2987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whitney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this added field within a repeat? There's an issue with publishing when only a field is added to a repeat - I would suggest adding a field in the parent form to publish and then remove the extra field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 19:16:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768023#M2987</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-03-27T19:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768024#M2988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You nailed it on the repeat! And I got it to publish successfully as you indicated, but the time still is not recording in the correct time zone in the downloaded data. I even added a note field, in case the calculate field required a note field. So I now have the following:&lt;/P&gt;&lt;P&gt;name:visit_date, type: dateTime, default: now(), bind::esri:fieldType: esriFieldTypeDate&lt;/P&gt;&lt;P&gt;name: visit_date_calc, type: calculate, calculation: pulldata("@visit_date", 'utcoffset'), bind::esri:fieldType: esriFieldTypeDate&lt;/P&gt;&lt;P&gt;name: vist_date_note: type: note, calculation:&amp;nbsp;${visit_date_calc}, bind::esri:fieldType: esriFieldTypeDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I download the data, although there is data in the original field of visit_date (albeit the wrong time zone), no date is recorded in either visit_date_calc or visit_date_note, so presumably something is wrong with visit_date_calc. Is the literal string of 'utcoffset' wrong? Should I be entering something else there? And if this ever gets resolved, is there a way for the correct time zone to be reflected in the autopopulated CreationDate and EditDate fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whitney&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 19:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768024#M2988</guid>
      <dc:creator>WhitneyWeber</dc:creator>
      <dc:date>2019-03-27T19:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768025#M2989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whitney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of things to adjust:&lt;/P&gt;&lt;P&gt;- '@property' is a keyword and should not be changed. &amp;nbsp;As the UTC offset is a device setting, it doesn't need to refer to a question&lt;/P&gt;&lt;P&gt;- You need to perform a calculation with the UTC offset value to get the 'local' time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 22:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768025#M2989</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-03-27T22:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768026#M2990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much, James! That was very helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anywhere that information regarding other keywords and device settings can be found? I didn't find these in the types worksheet of the survey spreadsheet and wonder what else I am missing that would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768026#M2990</guid>
      <dc:creator>WhitneyWeber</dc:creator>
      <dc:date>2019-03-29T15:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768027#M2991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These would not appear in the types worksheet as they aren't part of the XLSForm validation that is what that sheet is used for. &amp;nbsp;A full description of metadata that can be loaded in as form questions is at&amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm"&gt;Prepopulate answers—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 19:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/768027#M2991</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-03-29T19:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1119430#M38798</link>
      <description>&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;Sorry to open an old post but I used the above in a survey and it all goes through Ok, except when I test the submission of the survey and I get the following error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"bigint is incompatible with datetime2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 04:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1119430#M38798</guid>
      <dc:creator>TobyStewart2</dc:creator>
      <dc:date>2021-11-23T04:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1251307#M47084</link>
      <description>&lt;P&gt;Hi Toby, did you ever figure out a solution? I'm running into the same error message.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/195387"&gt;@TobyStewart2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;Sorry to open an old post but I used the above in a survey and it all goes through Ok, except when I test the submission of the survey and I get the following error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"bigint is incompatible with datetime2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:05:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1251307#M47084</guid>
      <dc:creator>wild_ecology</dc:creator>
      <dc:date>2023-01-25T15:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1322749#M51408</link>
      <description>&lt;P&gt;Can you please provide an explanation of how to use this in a survey that has a repeat section? The example provided causes the date/time to be blank in the main survey download and I am confused by the explanation provided to Whitney for their survey. Please.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2023 02:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1322749#M51408</guid>
      <dc:creator>MaxwellMoore</dc:creator>
      <dc:date>2023-08-26T02:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1328611#M51732</link>
      <description>&lt;P&gt;This solution worked for me. Thanks James.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 11:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1328611#M51732</guid>
      <dc:creator>GaryEnnis</dc:creator>
      <dc:date>2023-09-14T11:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Record time in correct time zone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1355501#M53153</link>
      <description>&lt;P&gt;Got the same problem. All works fine if I fill the survey from the app but if I want to fill it from the browser fo people who can acces to the app, this bignit error comes. Did you solve the problem?&lt;BR /&gt;&lt;BR /&gt;Sorry for open a very old conversation&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 01:19:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/record-time-in-correct-time-zone/m-p/1355501#M53153</guid>
      <dc:creator>IvanZamora</dc:creator>
      <dc:date>2023-12-01T01:19:32Z</dc:date>
    </item>
  </channel>
</rss>

