From 0a3c5cf8a2a114478bd1c8a4d8e0ef2ab3e50ee8 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 17 Jun 2010 15:31:05 +0000 Subject: [PATCH] Kludge to fix ISO timestamp parsing in AutoFieldWidget git-svn-id: svn://svn.open-ils.org/ILS/trunk@16742 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 5c0ee8765..1d60d719c 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -224,7 +224,11 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { 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': -- 2.11.0