Select to view content in your preferred language

How to prevent date change the time zone

2320
3
Jump to solution
05-07-2013 07:44 AM
JulieYuan
Emerging Contributor
I have a Date column (without time), at Eastern Time Zone.
The pop up converted the Date automatically. For example, our date is May 07, 2013, the pop up will show as "May 06, 2013 08:00PM".
I don't want the system convert the date to UTC.
Which Field or Tag can I use?

Thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Julie,

The useutc attribute needs to be added to your format tag and set to false:

<fields>
     <field name="TRACK_DATE">
        <format dateformat="longDate" useutc="false"/>
    </field>
</fields>

See the help file here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m3...

Regards

Anthony

View solution in original post

0 Kudos
3 Replies
AnthonyGiles
Honored Contributor
Julie,

The useutc attribute needs to be added to your format tag and set to false:

<fields>
     <field name="TRACK_DATE">
        <format dateformat="longDate" useutc="false"/>
    </field>
</fields>

See the help file here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m3...

Regards

Anthony
0 Kudos
JulieYuan
Emerging Contributor
Anthony,

Thanks for anwsering my question. It works.

Best Regard,

Julie
0 Kudos
AnthonyGiles
Honored Contributor
Julie,

Glad you got it working, please do not also forget to mark the post as answered by also checking the tick on the correct answer.

Regards

Anthony
0 Kudos