Work around this dojo.date.stamp bug where time zone offsets must have a colon:
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Nov 2009 06:32:09 +0000 (06:32 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Nov 2009 06:32:09 +0000 (06:32 +0000)
http://bugs.dojotoolkit.org/ticket/9028

git-svn-id: svn://svn.open-ils.org/ILS/trunk@14967 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/date.js

index 071b754..096ac0e 100644 (file)
@@ -47,7 +47,7 @@ util.date.timer_elapsed = function (id) {
 
 util.date.db_date2Date = function (db_date) {
     dojo.require('dojo.date.stamp');
-    return dojo.date.stamp.fromISOString( db_date );
+    return dojo.date.stamp.fromISOString( db_date.replace( /^(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d-\d\d)(\d\d)$/, '$1:$2') );
 }
 
 util.date.formatted_date = function (orig_date,format) {