Release 2.0.8 (#3914)
* support parsing negative durations in JS * bump luxon dependency * make sure that 2FA is not required for session based API calls * show name of items to delete * fix permission issue for recent activity items
This commit is contained in:
@@ -295,6 +295,11 @@ export default class KimaiDateUtils extends KimaiPlugin {
|
||||
return new Duration({seconds: 0});
|
||||
}
|
||||
|
||||
// actually, the parsing above should be improved, but that works as well
|
||||
if (duration[0] === '-' && luxonDuration.valueOf() > 0) {
|
||||
return luxonDuration.negate();
|
||||
}
|
||||
|
||||
return luxonDuration;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user