From a26a3dd5f695a07ebf6c8cbda8aa717fede4bb4a Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 11 Mar 2021 23:18:25 +0100 Subject: [PATCH] update begin of shift --- js/shift.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/shift.js b/js/shift.js index a1ffe87..f39e555 100644 --- a/js/shift.js +++ b/js/shift.js @@ -311,4 +311,7 @@ Shift.thaw = function (jsonShift) { shift.id = jsonShift.id; shift.Dauer = moment.duration(jsonShift._duration); return shift; -}; \ No newline at end of file +}; +Shift.prototype.updateBeginn = function(hour) { + this._begin = this._begin.add('hours', hour); +}