Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Run the following code :
---------------------------------------
<?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 var minDdetail:Date = new Date ( -(1970*365*24*60*60*1000)) ; // it's
public var maxDdetail:Date = new Date (9999, 11, 31,15,30) ;
public var curDdetail:Date = new Date (-(1905*365*24*60*60*1000)) ;
public function init_app():void
{ ds1.displayMode=DateSelectorDisplayMode.DATE; ds1.minDate = minDdetail ; ds1.maxDate = maxDdetail ; ds1.selectedDate = curDdetail ; 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" />
</s:Application>
---------------------------------------
Actual Results:
Here is output from console :
[SWF] TestDateSpinner.swf - 2,826,865 bytes after decompression
minDate is Mon Apr 23 08:00:00 GMT+0800 1
maxDate is Fri Dec 31 15:30:00 GMT+0800 9999
selectedDate is Wed Apr 7 08:00:00 GMT+0800 66
And for GUI application, please see attached picture .
You can see that , in GUI , it display "Apr 7 1966" , however , output show "Apr 7 66 " .
Expected Results:
Workaround (if any):