Fix facebook dates. #271

This commit is contained in:
Michael Teeuw
2016-05-03 11:56:24 +02:00
parent 05a946e2bf
commit 37f8c0783d
3 changed files with 9 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ ical.objectHandlers['END'] = function(val, params, curr, stack){
if (curr.start.length === 8) {
var comps = /^(\d{4})(\d{2})(\d{2})$/.exec(curr.start);
if (comps) {
curr.start = new Date (comps[1], comps[2], comps[3]);
curr.start = new Date (comps[1], comps[2] - 1, comps[3]);
}
}