<?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: How to populate current time from different timezones with GeoEvent Server in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89372#M398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice Philip. I've gone that route and am using a simple label instead. All this is on ArcGIS Online btw...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var uktime = DateAdd(Now(), 0, "hours");&lt;BR /&gt;var dst = DateDiff(TimeStamp(), uktime, "hours");&lt;BR /&gt;var mytime = DateAdd(TimeStamp(), $feature.Time_Difference - dst, "hours")&lt;BR /&gt;Text(mytime, 'HH:mm');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Time_Difference is an attribute that has the difference from GMT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 15:43:32 GMT</pubDate>
    <dc:creator>BarryPitts1</dc:creator>
    <dc:date>2018-04-24T15:43:32Z</dc:date>
    <item>
      <title>How to populate current time from different timezones with GeoEvent Server</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89366#M392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a GeoEvent Service running that populates an attribute field in a feature with the currentTime() every minute. This is fine for features that sit within UTC. I have features that range from UTC-4 to UTC+7. I figured I could have a "Time Difference" attribute with the numeric time difference (in milliseconds perhaps?) and put in a filed calculator to my GeoEvent Service. I have not been successful yet. Any advice would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 14:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89366#M392</guid>
      <dc:creator>BarryPitts1</dc:creator>
      <dc:date>2018-04-19T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate current time from different timezones with GeoEvent Server</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89367#M393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you know what timezone each feature&amp;nbsp;comes from? Could you have a different input connector per region?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 11:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89367#M393</guid>
      <dc:creator>PhilipThompson</dc:creator>
      <dc:date>2018-04-20T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate current time from different timezones with GeoEvent Server</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89368#M394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each feature is a static location. I just need to display the local time at each feature location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89368#M394</guid>
      <dc:creator>BarryPitts1</dc:creator>
      <dc:date>2018-04-20T15:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate current time from different timezones with GeoEvent Server</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89369#M395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not entirely clear on the architecture and current approach. It sounds like there a series of devices which are each individually pushing information at GEE. GEE is then persisting the updates to individual features within a single class within the geodatabase. The updates from the device do not contain local date/time and instead you are asking GEE to populate a field with a date/time value. Is that correct? How are you currently trying to populate the field?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something feels wrong about the premise of persisting the local date/time of each device. The default for ArcGIS Server and the Geodatabase is to persist and publish out data in UTC. If not UTC, then a consistent timezone rather than a mix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89369#M395</guid>
      <dc:creator>PhilipThompson</dc:creator>
      <dc:date>2018-04-20T15:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate current time from different timezones with GeoEvent Server</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89370#M396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip,&lt;/P&gt;&lt;P&gt;Apologies, I'm not explaining the situation clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a feature class loaded to our Enterprise Geodatabase representing locations across the globe. I am using a "Poll an ArcGIS Server for Features" input and "Update a Feature" output (both pointing at the same dataset) with&amp;nbsp;two Field Calculators between them.&amp;nbsp;One Field Calculator is using currentTime() as the expression and the idea for the second was to calculate the local time based on&amp;nbsp;a time&amp;nbsp;difference attribute (Current_UTC_Time +/- Time_Difference).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea being that a user can click on a feature and see what the current local time is at each location or have this information in an Operations Dashboard as users scroll through the locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that clarifies the current setup.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Barry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 07:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89370#M396</guid>
      <dc:creator>BarryPitts1</dc:creator>
      <dc:date>2018-04-23T07:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate current time from different timezones with GeoEvent Server</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89371#M397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I understand the problem you're seeking to resolve now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't recommend GEE for this type of scenario. Firstly, it's using a very big hammer to crack a relatively small nut. The true capabilities of GEE aren't being utilised. Secondly, as you're finding out, diagnosing issues with this type of solution would be very hard to trouble shoot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest you look to do something within your client app. Assuming&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Time_Difference to be a field within the feature, I'd look at apply an Arcade script - or similar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd" title="https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd"&gt;Date Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;DateAdd(Date(), -23, 'hours')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;DateAdd(Date(), 23, 'hours')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;DateAdd(Date(), $feature.&lt;SPAN&gt;Time_Difference&lt;/SPAN&gt;, 'hours')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 17:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89371#M397</guid>
      <dc:creator>PhilipThompson</dc:creator>
      <dc:date>2018-04-23T17:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate current time from different timezones with GeoEvent Server</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89372#M398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice Philip. I've gone that route and am using a simple label instead. All this is on ArcGIS Online btw...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var uktime = DateAdd(Now(), 0, "hours");&lt;BR /&gt;var dst = DateDiff(TimeStamp(), uktime, "hours");&lt;BR /&gt;var mytime = DateAdd(TimeStamp(), $feature.Time_Difference - dst, "hours")&lt;BR /&gt;Text(mytime, 'HH:mm');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Time_Difference is an attribute that has the difference from GMT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-populate-current-time-from-different/m-p/89372#M398</guid>
      <dc:creator>BarryPitts1</dc:creator>
      <dc:date>2018-04-24T15:43:32Z</dc:date>
    </item>
  </channel>
</rss>

