- Timestamp:
- 03/09/14 14:23:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/classes/surveyRuns.js
r487 r492 2 2 "./_Class", 3 3 "./surveys", 4 "dojo/_base/declare", 5 "dojo/date/stamp" 6 ], function(_Class, surveys, declare, stamp) { 4 "dojo/_base/declare" 5 ], function(_Class, surveys, declare) { 7 6 8 7 var SurveyRuns = declare([_Class],{ … … 21 20 _deserialize: function(obj) { 22 21 if (obj.endDate) { 23 obj.endDate = stamp.fromISOString(obj.endDate);22 obj.endDate = this._parseDate(obj.endDate); 24 23 } 25 24 if (obj.startDate) { 26 obj.startDate = stamp.fromISOString(obj.startDate);25 obj.startDate = this._parseDate(obj.startDate); 27 26 } 28 27 if (obj.survey) { … … 32 31 _serialize: function(obj) { 33 32 if (obj.endDate) { 34 obj.endDate = stamp.toISOString(obj.endDate);33 obj.endDate = this._formatDate(obj.endDate); 35 34 } 36 35 if (obj.startDate) { 37 obj.startDate = stamp.toISOString(obj.startDate);36 obj.startDate = this._formatDate(obj.startDate); 38 37 } 39 38 if (obj.survey) {
Note: See TracChangeset
for help on using the changeset viewer.