update begin of shift

This commit is contained in:
Christian Seyfferth 2021-03-11 23:18:25 +01:00
parent 210d7ef71b
commit a26a3dd5f6

View File

@ -311,4 +311,7 @@ Shift.thaw = function (jsonShift) {
shift.id = jsonShift.id; shift.id = jsonShift.id;
shift.Dauer = moment.duration(jsonShift._duration); shift.Dauer = moment.duration(jsonShift._duration);
return shift; return shift;
}; };
Shift.prototype.updateBeginn = function(hour) {
this._begin = this._begin.add('hours', hour);
}