Commit af5a6e33 authored by Sebastian's avatar Sebastian
Browse files

small stuff

parent 2663beac
......@@ -30,8 +30,8 @@ module.exports.formatDate = function formatDate(d, dateonly, floating) {
// For information about this format, see RFC 5545, section 3.3.5
// https://tools.ietf.org/html/rfc5545#section-3.3.5
module.exports.formatDateTZ = function formatDateTZ(property, date, eventData) {
var tzParam = '';
var floating = eventData.floating;
var tzParam = '',
floating = eventData.floating;
if(eventData.timezone) {
tzParam = ';TZID=' + eventData.timezone;
......
......@@ -160,11 +160,8 @@ var ICalEvent = function(_data, cal) {
if(timezone === undefined && data.timezone !== undefined) {
return data.timezone;
}
if(timezone === undefined && cal.timezone() !== undefined) {
return cal.timezone();
}
if(timezone === undefined) {
return null;
return cal.timezone();
}
data.timezone = timezone ? timezone.toString() : null;
......
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