AnsweredAssumed Answered

How to set the UTC offset to 0 in an Info Window?

Question asked by ian_broad on Jun 18, 2015
Latest reply on Jun 19, 2015 by evtguy

I asked a similar question on GIS SE the other day:

Incorrect time displaying in ArcGIS Javascipt popup template

 

The answer I got worked great for when I was using the PopupTemplate, but I've since switched to using the TooltipDialog or Info Window.

 

In ArcMap, I have a field called ReadTime of Date data type, and it shows the value:

6/17/2015 2:58:35 PM

 

I'm using the following formatting for the TooltipDialog:

 

"<b>Read Time: </b>${ReadTime:DateFormat(datePattern: 'M/d/yyyy hh:mm:ss a', selector:'date')}"

 

The problem is that in the web map I'm getting the following value:

6/17/2015 7:58:35 AM

 

So, the time is showing as 7 hours behind.

 

Is there a similar way I can set the UTC offset to 0, like when I used the PopupTemplate?

Outcomes