Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Language Found: English
Description
Steps to reproduce:
public function formatTime(date:Date):String
{
var f:DateFormatter = new DateFormatter();
f.formatString ="YYYY/MM/DD HH:NN:SS";
trace("getTimezoneOffset"+date.getTimezoneOffset());
trace("getFullYear:"+date.getFullYear());
trace("getMonth:"+(date.getMonth()+1));
trace("getDay:"+date.getDate());
trace("getHours:"+date.getHours());
trace("getMinutes:"+date.getMinutes());
trace("getSeconds:"+date.getSeconds());
trace("getUTCFullYear:"+date.getUTCFullYear());
trace("getUTCMonth:"+(date.getUTCMonth()+1));
trace("getUTCDay:"+date.getUTCDate());
trace("getUTCHours:"+date.getUTCHours());
trace("getUTCMinutes:"+date.getUTCMinutes());
trace("getUTCSeconds:"+date.getUTCSeconds());
trace(f.format(date));
}
Actual Results:
getTimezoneOffset-120
getFullYear:2008
getMonth:7
getDay:11
getHours:0
getMinutes:0
getSeconds:0
getUTCFullYear:2008
getUTCMonth:7
getUTCDay:10
getUTCHours:22
getUTCMinutes:0
getUTCSeconds:0
2008/07/11 24:00:00
Expected Results:
2008/07/11 00:00:00
Workaround (if any):