Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
Run code as below :
-------------------------
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="init_app()">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<fx:Date id="cDate" />
</fx:Declarations>
<fx:Script>
<![CDATA[
import flash.events.Event;
import spark.components.calendarClasses.DateSelectorDisplayMode;
public static const maxDateOnly:Date = new Date (2012,11,29 ) ;
public static const curDateOnly2:Date = new Date(2000,11,31) ;
public function init_app():void
{ ds1.maxDate = maxDateOnly ; ds1.selectedDate = curDateOnly2 ; trace ("minDate is " + ds1.minDate.toString() ) ; trace ("maxDate is " + ds1.maxDate.toString() ) ; trace ("selectedDate is " + ds1.selectedDate.toString() ) ; } ]]
>
</fx:Script>
<s:layout>
<s:VerticalLayout />
</s:layout>
<s:DateSpinner id="ds1" displayMode="
{DateSelectorDisplayMode.DATE_AND_TIME}" />
<s:Label text="
" />
</s:Application>
------------------------
Actual Results:
console output info is :
minDate is Thu Aug 12 19:24:22 GMT+0800 2010
maxDate is Sat Dec 29 00:00:00 GMT+0800 2012
selectedDate is Sun Dec 31 00:00:00 GMT+0800 2000
However , the GUI application is shown as attachment, onlyMaxDate.jpg
Expected Results:
The traced output information of selectedDate should match on the GUI.
Workaround (if any):