Can anyone confirm this bug for me?
I have a static method to convert a date to an ISO date string.
Here's the method:
public static function dateToISO(date:Date):String {
var iso:String;
var localeString:String;
var df:DateFormatter = new DateFormatter();
df.formatString = "YYY-MM-DDTHH:NN:SSZ";
iso = date.toUTCString();
localeString = df.format(iso);
return localeString;
}
I know it could be more efficient, but I have each variable set up so
that I can check it's value in the debugger.
When the date.toUTCString() resolves the date:
iso = "Tue Jul 1 00:02:00 2008 UTC"
after the df.format(iso);
localeString = "2008-07-01T24:02:00Z"
Note the hour == "24", it should be "00".