I am build a simple task manager where a form has two input text fields of title and description and one date field using jquery datepicker. I have displayed my data in table and used parse.com as my backend to store and retrieve data. My problem is when I set my date object using parse.js I face these problem i.e
var sDate=new Date($(".date-task").val()); //Date {Tue Jun 26 2012 00:00:00 GMT+0530 (IST)}
var todo = new TodoList();
todo.set('dueon',sDate); // this is how I set the value in parse
todo.save();
But when I go to parse .com the date is saved to previous date ie Mon Jun 25 2012 18:30:00 GMT
when I check the post in firebug the date is posted as
__type "Date"
iso "2012-06-25T18:30:00.000Z"
how do I save the correct date in data browser of parse.com