github.com/manicqin/nomad@v0.9.5/ui/app/serializers/task-state.js (about)

     1  import ApplicationSerializer from './application';
     2  
     3  export default ApplicationSerializer.extend({
     4    normalize(typeHash, hash) {
     5      // TODO API: finishedAt is always marshaled as a date even when unset.
     6      // To simplify things, unset it here when it's the empty date value.
     7      if (hash.FinishedAt === '0001-01-01T00:00:00Z') {
     8        hash.FinishedAt = null;
     9      }
    10  
    11      return this._super(typeHash, hash);
    12    },
    13  });