My flex viewer is showing the date field as one day earlier. How do I fix it?
Solved! Go to Solution.
Brad,
Manually edit your PopUp_47.xml file to look like this (I have tested and I get dates one day earlier than your app is showing):
<?xml version="1.0" ?>
<configuration>
<title>Volunteer Opportunities</title>
<fields>
<field name="Date" alias="Date" visible="true">
<format useutc="true" dateformat="MMMM D, YYYY"/>
</field>
<field name="PublicViewable" alias="PublicViewable"/>
<field name="Department" alias="Department" visible="true"/>
<field name="Contact" alias="Contact" visible="true"/>
<field name="Description" alias="Description" visible="true"/>
<field name="X" alias="X">
<format precision="5" />
</field>
<field name="Y" alias="Y">
<format precision="5" />
</field>
</fields>
<showattachments>true</showattachments>
<showrelatedrecords>false</showrelatedrecords>
</configuration>
To find this file look in your c:\inetpub\wwwroot\flexviewers\map\popups\PopUp_47.xml (the map part of the path is the only part I am not sure about, map would be the name you gave the application when you created it in AppBuilder).
Brad,
So is it the popup or the attribute table that is wrong? Are you using the useutc attribute?
Popups useutc: ArcGIS Viewer for Flex - Pop-up configuration files
Attribute Table Widget useutc: ArcGIS Viewer for Flex - Attribute Table widgettags
the popup is showing the wrong date. The attribute table is correct. I tried it both ways UTC and non-utc
Brad,
please provide your pop up config.
I am using the Flex- Application Builder. How doe I get the popup info?
Brad,
Which layer is showing the wrong date? Which service and sublayer ID number?
Layer: WPC Volunteer Opportunities (ID: 0)
it is the date field in that service. Thanks for the help
Brad,
Manually edit your PopUp_47.xml file to look like this (I have tested and I get dates one day earlier than your app is showing):
<?xml version="1.0" ?>
<configuration>
<title>Volunteer Opportunities</title>
<fields>
<field name="Date" alias="Date" visible="true">
<format useutc="true" dateformat="MMMM D, YYYY"/>
</field>
<field name="PublicViewable" alias="PublicViewable"/>
<field name="Department" alias="Department" visible="true"/>
<field name="Contact" alias="Contact" visible="true"/>
<field name="Description" alias="Description" visible="true"/>
<field name="X" alias="X">
<format precision="5" />
</field>
<field name="Y" alias="Y">
<format precision="5" />
</field>
</fields>
<showattachments>true</showattachments>
<showrelatedrecords>false</showrelatedrecords>
</configuration>
To find this file look in your c:\inetpub\wwwroot\flexviewers\map\popups\PopUp_47.xml (the map part of the path is the only part I am not sure about, map would be the name you gave the application when you created it in AppBuilder).
Thanks. I'm not sure why initially the use UTC didn't work in App Builder. THANK YOU for the debug!