calendar-tools
Advanced tools
Comparing version 0.2.9 to 0.3.0
0.3.0 / 2011-12-20 | ||
================== | ||
* fix BYMONTHDAY value | ||
0.2.9 / 2011-12-20 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -14,3 +14,3 @@ | ||
exports.version = '0.2.9'; | ||
exports.version = '0.3.0'; | ||
@@ -17,0 +17,0 @@ /** |
@@ -103,6 +103,6 @@ /*! | ||
'DTSTART' + (ev.allDay | ||
? ':' + _str.value(options.start) | ||
? ';' + _str.value(options.start) | ||
: ';' + _str.dateTZID(options.start, tz)) | ||
, 'DTEND' + (ev.allDay | ||
? ':' + _str.value(options.end) | ||
? ';' + _str.value(options.end) | ||
: ';' + _str.dateTZID(options.end, tz)) | ||
@@ -144,4 +144,4 @@ ]; | ||
? (ev.recurrence['repeat-on'].mode == 'day-of-month' | ||
? ';BYMONTHDAY=1' | ||
: ';BYDAY=1' | ||
? ';BYMONTHDAY=' + ev.start.getDate() | ||
: ';BYDAY=' + ev.start.getDate() | ||
+ daysMapRecToRFC2445[dayNames[options._start.getDay()]]) | ||
@@ -265,4 +265,4 @@ : ''); | ||
// BYMONTHDAY/repeat-on. Used for: | ||
// - weekly mode | ||
else if (prp[0] == 'BYMONTHDAY' && prp[1] == 1) | ||
// - monthly mode | ||
else if (prp[0] == 'BYMONTHDAY') | ||
recObj['repeat-on'].mode = 'day-of-month'; | ||
@@ -269,0 +269,0 @@ |
@@ -23,12 +23,2 @@ /*! | ||
/** | ||
* timezone correction | ||
* @param {Number} tz | ||
*/ | ||
function tzCorrection (date, tz) { | ||
return date = new Date(+date - tz * _hour); | ||
} | ||
/** | ||
@@ -100,3 +90,3 @@ * date usefull functions * | ||
/** | ||
* Apply timezone diff correctio | ||
* Apply timezone diff correction | ||
*/ | ||
@@ -109,3 +99,3 @@ | ||
if (tzdiff) | ||
date.setMinutes(date.getMinutes() + tzdiff * sign) | ||
date.setMinutes(date.getMinutes() + tzdiff * sign); | ||
@@ -112,0 +102,0 @@ return date; |
{ | ||
"name": "calendar-tools" | ||
, "version": "0.2.9" | ||
, "version": "0.3.0" | ||
, "description": "Calendar object model" | ||
@@ -5,0 +5,0 @@ , "keywords": ["calendar", "google calendar", "fullCalendar", "recurring events", "icalendar", "rfc2445"] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
499527
10370