github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/serializers/drain-strategy.js (about) 1 import ApplicationSerializer from './application'; 2 3 export default class DrainStrategy extends ApplicationSerializer { 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.ForceDeadline === '0001-01-01T00:00:00Z') { 8 hash.ForceDeadline = null; 9 } 10 11 return super.normalize(typeHash, hash); 12 } 13 }