From b18b40fa037cf064d164dba611098cb43767395c Mon Sep 17 00:00:00 2001 From: Alex Rinehart Date: Tue, 2 Jun 2015 23:56:43 -0700 Subject: [PATCH 1/2] Update README.md Fixed the 30 minute event to be spelled correctly and actually be 30 minutes (and not 1470 minutes). --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db5204f..8e77052 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Example Demo ``` From e7c3489c2d0bc27a810e46e7069e0f69cab61104 Mon Sep 17 00:00:00 2001 From: Alex Rinehart Date: Mon, 17 Aug 2015 12:18:33 -0500 Subject: [PATCH 2/2] Fix minute/second bug --- ics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ics.js b/ics.js index 083d963..086da77 100644 --- a/ics.js +++ b/ics.js @@ -62,14 +62,14 @@ var ics = function() { var start_day = ("00" + ((start_date.getDate()).toString())).slice(-2); var start_hours = ("00" + (start_date.getHours().toString())).slice(-2); var start_minutes = ("00" + (start_date.getMinutes().toString())).slice(-2); - var start_seconds = ("00" + (start_date.getMinutes().toString())).slice(-2); + var start_seconds = ("00" + (start_date.getSeconds().toString())).slice(-2); var end_year = ("0000" + (end_date.getFullYear().toString())).slice(-4); var end_month = ("00" + ((end_date.getMonth() + 1).toString())).slice(-2); var end_day = ("00" + ((end_date.getDate()).toString())).slice(-2); var end_hours = ("00" + (end_date.getHours().toString())).slice(-2); var end_minutes = ("00" + (end_date.getMinutes().toString())).slice(-2); - var end_seconds = ("00" + (end_date.getMinutes().toString())).slice(-2); + var end_seconds = ("00" + (end_date.getSeconds().toString())).slice(-2); // Since some calendars don't add 0 second events, we need to remove time if there is none... var start_time = '';