changes for newest dp

This commit is contained in:
2019-01-15 11:35:56 +01:00
parent df89539710
commit 0cad7ccab4
4 changed files with 17 additions and 11 deletions
+5
View File
@@ -178,6 +178,11 @@ Shift.prototype = {
}
Shift.setDurationFromRules = function (shift) {
'use strict';
var isAllDayEvent = shift.Beginn == "00:00";
if (isAllDayEvent) {
shift.Dauer = moment.duration(24, 'h').locale(MOMENT_LOCALE);
return;
}
var art = shift.Art.toLowerCase();
var name = shift.Name.toLowerCase();
var duration = 60;
+2 -1
View File
@@ -1,6 +1,7 @@
var VCAL_DATETIME_FORMAT = "YMMDD[T]HHmmss"; //20160216T130500
var UID_FORMAT = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
var NEW_LINE = "\r\n";
var productID = window.title;
function VMeta() {
this.properties = new Map();
@@ -63,7 +64,7 @@ function VCalendar(calendarName) {
this.tag = "VCALENDAR";
this.set('X-WR-CALNAME', calendarName);
this.set('VERSION', '2.0');
this.set('PRODID', window.location.href);
this.set('PRODID', productID);
this.set('METHOD', "PUBLISH");
this.set('X-WR-TIMEZONE', "Europe/Berlin");
this.set('CALSCALE', "GREGORIAN");