[
https://issues.apache.org/jira/browse/FLEX-18168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean updated FLEX-18168:
---------------------------------
Labels: easytest (was: )
> CLONE -DateField returns wrong date
> -----------------------------------
>
> Key: FLEX-18168
> URL: https://issues.apache.org/jira/browse/FLEX-18168
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: DateField
> Affects Versions: Adobe Flex SDK 2.0.1 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s):
> Browser: Internet Explorer 7.x
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easytest
>
> Steps to reproduce:
> 1. Create an application with a DateField
> 2. Set your time zone to one that uses Daylight Saving Time (in my case
> GMT-03:00 - Brasilia)
> 3. Run your application and try to choose the first date of DST for that
> locale (In my case 19/10/2008, but it was 12/10/2008 before an optional
> update from MS to fix this)
>
> Actual Results:
> It shows the day before the selected one, ie: 18/10/2008, instead of
> 19/10/2008. If I click on button, the panel shows the correct date as
> selected though.
>
> Expected Results:
> Show the correct date.
>
> Workaround (if any):
> None that I could find.
> By debugging, I could see that the Date object returned by DateChooser is
> already wrong. In my case, its value is 2008-10-18 23:00 (Year-Month-Day
> Hour-Minutes), and UTC is 2008-10-19 02:00, so it was reduced by one hour.
> Other time APIs (such as java's) will increase the time in this case, as
> 2008-10-19 00:00 didn't exist, resulting in 2008-10-19 00:01. It's a pain as
> well, but at least it's arguably correct.
> However, reducing it by one hour just seems completly wrong. And showing a
> date different from the selected on is not acceptable.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira