anchor.diff:                          }).then(function (data) {
                               var events = data.rows;
   
  -                            successCallback(events.map(function (row) {
  -                                var eventObj = {
  -                                    id : LABKEY.Utils.generateUUID(),
  -                                    title: row.animalId + " Total: " + row.TotalWater,
  -                                    start: row.Date,
  -                                    allDay: true,
  -                                    textColor: '#ff0000',
  -                                    rawRowData: row
  -                                };
  -
  -                                if (row.mlsPerKg >= row.InnerMlsPerKg){
  -                                    eventObj.color = '#000CFF';
  -                                }else{
  -                                    eventObj.color = '#EE2020'
  -                                }
  -                                return eventObj;
  +                            successCallback(
  +                                    events.map(function (row) {
  +                                        var eventObj = {
  +                                            id : LABKEY.Utils.generateUUID(),
  +                                            title: row.animalId + " Total: " + row.TotalWater,
  +                                            start: new Date(row.Date),
  +                                            allDay: true,
  +                                            textColor: '#000000',
  +                                            rawRowData: row
  +                                        };
  +
  +                                        if (row.mlsPerKg >= row.InnerMlsPerKg){
  +                                            eventObj.color = '#000CFF';
  +                                        }else{
  +                                            eventObj.color = '#EE2020'
  +                                        }
  +                                        return eventObj;
  +                                    })
  +                            );
  +                            failureCallback((function (data){
  +                                console.log("error from waterPrePivot general");
                               }))
   
                           })
  
positive.code:                             console.log(" startStr" + fetchInfo.startStr);
  
                              console.log("inside eventSource " + allowProjects);
                             // let events = [];
                             // events.push({title:'test event',start:'2021-04-21'});
  
                              <%--successCallback(events.map(function(row){
                                  return {title:row.title,start:row.start}
                              }));
                              failureCallback(function(){
                                  console.log ('error');
                              });--%>
  
                              // date.setDate(date.getDate() - 60);
                              if ($animalId == 'undefined' || $animalId == "null"){
                                  let queryConfig ={};
                                  queryConfig = queryConfigFunc(fetchInfo,isSuperUser);
  
negative.code:     function Item(id, value) {
          this.id = ko.observable(id);
          this.value = ko.observable(value);
          this.dirtyFlag = new ko.dirtyFlag(this);
      }
  
  