Author: shane.bryzak(a)jboss.com
Date: 2008-01-29 23:39:11 -0500 (Tue, 29 Jan 2008)
New Revision: 7300
Modified:
trunk/src/remoting/org/jboss/seam/remoting/remote.js
Log:
fixed really obscure javascript date conversion issue that was causing incorrect date
values
Modified: trunk/src/remoting/org/jboss/seam/remoting/remote.js
===================================================================
--- trunk/src/remoting/org/jboss/seam/remoting/remote.js 2008-01-30 03:34:05 UTC (rev
7299)
+++ trunk/src/remoting/org/jboss/seam/remoting/remote.js 2008-01-30 04:39:11 UTC (rev
7300)
@@ -858,9 +858,9 @@
Seam.Remoting.deserializeDate = function(val)
{
var dte = new Date();
- dte.setFullYear(parseInt(val.substring(0,4), 10));
- dte.setMonth(parseInt(val.substring(4,6), 10) - 1);
- dte.setDate(parseInt(val.substring(6,8), 10));
+ dte.setFullYear(parseInt(val.substring(0,4), 10),
+ parseInt(val.substring(4,6), 10) - 1,
+ parseInt(val.substring(6,8), 10));
dte.setHours(parseInt(val.substring(8,10), 10));
dte.setMinutes(parseInt(val.substring(10,12), 10));
dte.setSeconds(parseInt(val.substring(12,14), 10));
Show replies by date