Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Edited Issue: Various Fixes to SPXmlToJSON [10219]

$
0
0
There are times (no discernible pattern) when date/time values are returned like "2014-01-12 00:00:00". Without the "T" to split the date and time, conversion fails. This fixes it:
``` javascript
function dateToJsonObject(s) {

if (s.charAt(10) == " ") {
s = s.slice(0, 10) + "T" + s.slice(11, s.length);
}
return new Date(s);
}
```

In userToJsonObject, the userId wasn't set correctly. Changed from:
``` javascript
userId: thisUser.Id,
```
to
``` javascript
userId: thisUser.id,
```

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>