changes for newest dp
This commit is contained in:
@@ -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
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user