Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-3179
in
a recent build.
-
Touch Premium Member
-
-
Sencha User
Workaround?
Does anyone know of a work around for this? It's preventing me from further developing a crucial part of my application.
-

Originally Posted by
DonM
Does anyone know of a work around for this? It's preventing me from further developing a crucial part of my application.
This is still the case in V2.1 final?
-
Sencha User

Originally Posted by
ingo.hefti
This is still the case in V2.1 final?
I just upgraded to 2.1 from 2.0.1 to find out, and yep, it still exists in the current 2.1 release.
It's showing the data fine in local storage: "DoneDate":"\\/Date(1352394180000)\\/"
but when it actually goes to load it up in the model it shows up as null. I have the field as:
{ name: 'DoneDate', type: 'date', dateFormat: "MS" }
-
Sencha Touch Premium User
-
Sencha User

Originally Posted by
senchacyber
....
Did you make an account just to post 4 dots on the forum?
-
Sencha Premium Member
I've been working with this problem, and have found a workaround.
Code:
parseFunctions: {
"MS": function(input, strict) {
// note: the timezone offset is ignored since the MS Ajax server sends
// a UTC milliseconds-since-Unix-epoch value (negative values are allowed)
var re = new RegExp('\\\\?/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\\\?/');
var r = (input || '').match(re);
return r? new Date(((r[1] || '') + r[2]) * 1) : null;
}
}
Override the parse function for MS format in DateExtras with this.