<?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: calculate time zone or UTC in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788609#M7711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming there's no way to include 'utcOffset' within 'now()' ? I tried the below to no success:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;now(pulldata("@property","utcOffset"))&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2018 12:31:58 GMT</pubDate>
    <dc:creator>AndrewHargreaves2</dc:creator>
    <dc:date>2018-09-10T12:31:58Z</dc:date>
    <item>
      <title>calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788598#M7700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm trying to calculate a custom string from a date and time using the now() function.&amp;nbsp; This gives my the local time, which is fine, kinda.&amp;nbsp; What I need to know is the timezone of this local time, or the zulu time.&amp;nbsp; I'm using the info found at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/groups/survey123/blog/2016/04/17/dates-and-time-in-survey123-for-arcgis"&gt;https://community.esri.com/groups/survey123/blog/2016/04/17/dates-and-time-in-survey123-for-arcgis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if there was a %timezone or something that returned the UTC offset but there isn't.&amp;nbsp; Is there any way to calculate this?&amp;nbsp; I'm wondering if it could be calculated out of a decimal date or something, but I'm limited to what I can use as a calculation in Survey123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to write a military date-time group,&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;EXAMPLE: 091630Z JUL 11 represents 1630 UTC on 9 July 2011.&amp;nbsp; There is more to my final formatting than that though, saving it as a date/time object won't help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 17:09:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788598#M7700</guid>
      <dc:creator>JosephRogan2</dc:creator>
      <dc:date>2017-12-19T17:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788599#M7701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not currently have a property or parameter to return the UTC offset or timezone with a date/time question or in a string as part of a calculation. We have an open enhancement request to support UTC offset parameters and I have added your comments to the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 03:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788599#M7701</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-12-20T03:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788600#M7702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jospeh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With 2.7, Survey123&amp;nbsp;has just introduced UTC offset recording:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The function &lt;SPAN class=""&gt;pulldata("@property", 'utcoffset')&lt;/SPAN&gt; can now be used to capture and record the UTC time zone offset of the device.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 18:04:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788600#M7702</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-03T18:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788601#M7703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;Can you share an example or has this function been added to a sample template?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 20:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788601#M7703</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-04-04T20:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788602#M7704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Damien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find the function at the bottom of the updated 'Date &amp;amp; Time' template. &amp;nbsp;It presents the offset in decimal hours (most timezones are an even number of hours off of UTC) to facilitate the addition. &amp;nbsp;True addition in Survey123 will be to add the offset value to the time recorded to create a 'fake' local time when downloading from AGOL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 20:39:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788602#M7704</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-04T20:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788603#M7705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James is there an example of this calculation somewhere?&amp;nbsp; I know it should be pretty straightforward to apply the utcoffset to now() but I am confused as to formatting of these values.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 19:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788603#M7705</guid>
      <dc:creator>RobertWeber</dc:creator>
      <dc:date>2018-07-30T19:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788604#M7706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="416508" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/416508_Untitled.png" /&gt;&lt;/P&gt;&lt;P&gt;quick sample here. Do not forget to keep your UTC date as a string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 23:52:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788604#M7706</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2018-07-30T23:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788605#M7707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ismael:&lt;/P&gt;&lt;P&gt;I am using the XLS Form Type "start" and "end" to capture the date and time the form was opened and then submitted.&amp;nbsp; The times recorded for start and end&amp;nbsp;appear correctly in the survey's hosted feature service, but when printed to the a MS-Word&amp;nbsp;report from the Survey123 webpage, the time is reported as 5 hours ahead (utcoffset).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Start Stop Times" class="image-2 jive-image" height="228" src="https://community.esri.com/legacyfs/online/418945_StartStop.JPG" width="414" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using your information in an attempt to fix my offset time, but I don't understand your last comment "&lt;SPAN style="background-color: #ffffff;"&gt;Do not forget to keep your UTC date as a string.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;When I use the field types and calculations&amp;nbsp;as shown, below, I get a 13 integer return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="calc" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418944_Calculation.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Start Stop Time2" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418946_StartStop2.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should my field types be in order to return a date and time in my time zone?&amp;nbsp; What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;Survey123 Community&lt;/EM&gt; and I appreciate your time and attention to our questions.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788605#M7707</guid>
      <dc:creator>JoeFlannery</dc:creator>
      <dc:date>2018-08-17T13:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788606#M7708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest using the format-date() function to write out the time to a hidden/calculate question to store the date as a local string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the reporting of time 5 hours ahead, I can see this problem and have logged an issue to correct it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 17:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788606#M7708</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-17T17:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788607#M7709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James:&lt;/P&gt;&lt;P&gt;Thank you for your attention.&amp;nbsp; I'll do that for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel2" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418994_Excel2.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 19:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788607#M7709</guid>
      <dc:creator>JoeFlannery</dc:creator>
      <dc:date>2018-08-17T19:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788608#M7710</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;I was excited to see the time error bug fix in report generation in the August 30th update to Survey123 website.&amp;nbsp; I don't know if what I am reporting here is a bug or expected behavior.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As shown in my earlier posting, above, I am using the "start" and "end" options in the "type" field to automatically get the start time and end time of the survey form.&amp;nbsp; I take those results and format them and save them as text.&lt;/P&gt;&lt;P&gt;I discovered that if the "type" field for my StartDTtext and StopDTtext items is "hidden", then my times are output in the S123 Word report incorrectly (see below).&amp;nbsp; I&lt;SPAN&gt;f the "type" field&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for m&lt;/SPAN&gt;&lt;SPAN&gt;y StartDTtext and StopDTtext items is "text", then my times are output in the S123 Word report correctly (see below).&amp;nbsp; This is true even though my "bind::esri:fieldType = esriFieldTypeString".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="time" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/420932_Time01.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2018 20:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788608#M7710</guid>
      <dc:creator>JoeFlannery</dc:creator>
      <dc:date>2018-08-31T20:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788609#M7711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming there's no way to include 'utcOffset' within 'now()' ? I tried the below to no success:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;now(pulldata("@property","utcOffset"))&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 12:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788609#M7711</guid>
      <dc:creator>AndrewHargreaves2</dc:creator>
      <dc:date>2018-09-10T12:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: calculate time zone or UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788610#M7712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The now() function takes no parameters - it simple returns the current timestamp. &amp;nbsp;If you are wanting to generate a 'local' timestamp (one with the UTC&amp;nbsp;offset built-in to support systems that are not timezone aware), you would need to add the offset to the timestamp (in the calculation column):&lt;/P&gt;&lt;P&gt;now() + pulldata("@property", "utcoffset")*60*60*1000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:37:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-time-zone-or-utc/m-p/788610#M7712</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-09-10T15:37:08Z</dc:date>
    </item>
  </channel>
</rss>

