Fix Date handling by the DataTable, again... Now it uses a custom date parser to take the ISO date format. Fixes bug #11428.

This commit is contained in:
Colin Kuskie 2010-02-23 12:56:00 -08:00
parent 3971d9bd4f
commit 83395fbe95
3 changed files with 2 additions and 2 deletions

View file

@ -5,6 +5,7 @@
- fixed #11420: Snippet not save mimetype
- fixed #11422: Disabled scheduled task run by spectre
- fixed #11431: Prototypes cache attribute lost
- fixed #11428: Dataform Date Field Problem
7.8.12
- fixed #11285: Pasting HTML into Code Editor in IE

View file

@ -107,7 +107,7 @@ sub getDataTableHtml {
### Prepare the columns data
my %parsers = (
date => "YAHOO.util.DataSource.parseDate",
date => "YAHOO.lang.JSON.stringToDate",
number => "YAHOO.util.DataSource.parseNumber",
);

View file

@ -91,7 +91,6 @@ WebGUI.Form.DataTable
delete data.columns[ i ].editorOptions;
}
YAHOO.lang.JSON.dateToString = function(d) { return d.toString(); }; /* this overrides the default stringify date format */
return YAHOO.lang.JSON.stringify( data );
};