My flex viewer is showing the date field as one day earlier. How do I fix it?
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).
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
please provide your pop up config.
I am using the Flex- Application Builder. How doe I get the popup info?
Map of Our Work
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.