Commit 129ee4d2 authored by Sebastian's avatar Sebastian
Browse files

NAME / TIMEZONE-ID

parent 5aaa3801
......@@ -160,7 +160,7 @@ cal.prodId('//My Company//My Product//EN');
#### name([_String_ name])
Use this method to set your feed's name. Is used to fill `X-WR-CALNAME` in your iCal file.
Use this method to set your feed's name. Is used to fill `NAME` and `X-WR-CALNAME` in your iCal file.
#### url([_String_ url])
......@@ -174,7 +174,7 @@ var cal = ical().url('https://example.com/calendar.ical');
#### timezone([_String_ timezone])
Use this method to set your feed's timezone. Is used to fill `X-WR-TIMEZONE` in your iCal.
Use this method to set your feed's timezone. Is used to fill `TIMEZONE-ID` and `X-WR-TIMEZONE` in your iCal.
```javascript
var cal = ical().timezone('Europe/Berlin');
......
......@@ -30,11 +30,13 @@ var ICalCalendar = function(_data) {
// NAME
if(data.name) {
g += 'NAME:' + data.name + '\r\n';
g += 'X-WR-CALNAME:' + data.name + '\r\n';
}
// Timezone
if(data.timezone) {
g += 'TIMEZONE-ID:' + data.timezone + '\r\n';
g += 'X-WR-TIMEZONE:' + data.timezone + '\r\n';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment