Commit c3812898 authored by Mark Stenglein's avatar Mark Stenglein

Merge branch '1-actually-have-timezones-work' into 4-start-anew

parents 27f0d56c 000b0f55
......@@ -4,6 +4,8 @@
[![CI Status](https://img.shields.io/travis/sebbo2002/ical-generator.svg?style=flat-square)](https://travis-ci.org/sebbo2002/ical-generator)
<!-- [![Test Coverage](https://sebbo.helium.uberspace.de/teamcity-badges/ICalGenerator_UnitTests/coverage-istanbul)](https://ci.sebbo.net/project.html?projectId=ICalGenerator&tab=preport_project1_Test_Coverage&guest=1) -->
This is the SRCT fork of Sebbo2002's ical-generator
ical-generator is a small piece of code which generates ical calendar files. I use this to generate subscriptionable
calendar feeds.
......
'use strict';
/**
* @author Mark Stenglein (@ocelotsloth)
* @module timezone
* @constructor ICalTimezone Timezone
*/
var ICalTimezone = function(_data, calendar) {
var attributes = [
'tzid', // REQUIRED, MUST NOT occur more than once
'last-mod', // OPTIONAL, MUST NOT occur more than once
'tzurl', // OPTIONAL, MUST NOT occur more than once
'standardc', // Either {s/d}c REQUIRED, MAY occur more than once
'daylightc', // Either {s/d}c REQUIRED, MAY occur more than once
'x-prop', // OPTIONAL, MAY occur more than once
'iana-prop' // OPTIONAL, MAY occur more than once
];
};
module.exports = ICalTimezone;
......@@ -7,7 +7,9 @@
"url": "http://github.com/sebbo2002/ical-generator/issues",
"email": "bugs@sebbo.net"
},
"dependencies": {},
"dependencies": {
"moment-timezone": "^0.5.11"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.11.0",
......
This diff is collapsed.
......@@ -3,7 +3,7 @@ var assert = require('assert'),
path = require('path'),
fs = require('fs');
describe('ical-generator 0.2.x / ICalCalendar', function() {
describe('ical-generator 0.3.x / ICalCalendar', function() {
'use strict';
describe('ICalTools', function() {
......
var assert = require('assert');
var path = require('path');
var fs = require('fs');
describe('ical-generator 0.3.x / ICalTimezone', function() {
'use strict';
it('Module exports type', function() {
var vTZ = require(path.join(__dirname, '..', 'lib', 'timezone'));
var actual = typeof(vTZ);
var expected = 'function';
assert.equal(actual, expected,
'timezone.js should return a function');
});
});
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