incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r481251 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/DateFormat.js
Date Fri, 01 Dec 2006 14:35:44 GMT
Author: matzew
Date: Fri Dec  1 06:35:43 2006
New Revision: 481251

URL: http://svn.apache.org/viewvc?view=rev&rev=481251
Log:
changed dateTimeconverter on client side

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/DateFormat.js

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/DateFormat.js
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/DateFormat.js?view=diff&rev=481251&r1=481250&r2=481251
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/DateFormat.js
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/DateFormat.js
Fri Dec  1 06:35:43 2006
@@ -1072,7 +1072,16 @@
               _subformat,
               formatTime,
               stringHolder);
-  
+
+  if(this._offset)
+  {
+  	var gmtDiff = (((this._offset + formatTime.getTimezoneOffset()) * -1) / 60);
+  	if(parseInt(gmtDiff) > 0)
+  	{
+  		stringHolder.value = stringHolder.value + "+"
+  	}
+  	stringHolder.value = stringHolder.value + gmtDiff + ":00";
+  }
   return stringHolder.value;
 }
 



Mime
View raw message