[open-ils-commits] r16742 - trunk/Open-ILS/web/js/dojo/openils/widget (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 17 11:31:08 EDT 2010
Author: phasefx
Date: 2010-06-17 11:31:05 -0400 (Thu, 17 Jun 2010)
New Revision: 16742
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
Kludge to fix ISO timestamp parsing in AutoFieldWidget
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-06-17 03:58:39 UTC (rev 16741)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-06-17 15:31:05 UTC (rev 16742)
@@ -224,7 +224,11 @@
dojo.require('dojo.date.stamp');
this.widget = new dijit.form.DateTextBox(this.dijitArgs, this.parentNode);
if(this.widgetValue != null)
- this.widgetValue = dojo.date.stamp.fromISOString(this.widgetValue);
+ this.widgetValue = dojo.date.stamp.fromISOString(
+ // Kludge until the ML returning ISO timestamps with a colon in the timezone offset,
+ // which dojo.date.stamp.fromISOString requires
+ this.widgetValue.replace( /^(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d-\d\d)(\d\d)$/, '$1:$2')
+ );
break;
case 'bool':
More information about the open-ils-commits
mailing list