Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfec67f37a | ||
|
|
af1d393a10 | ||
|
|
aadebcff53 | ||
|
|
981e460c1d | ||
|
|
026753d4ff |
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Travis Krause
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -123,14 +123,14 @@ var ics = function(uidDomain, prodId) {
|
||||
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);
|
||||
|
||||
var now_year = ("0000" + (now_date.getFullYear().toString())).slice(-4);
|
||||
var now_month = ("00" + ((now_date.getMonth() + 1).toString())).slice(-2);
|
||||
var now_day = ("00" + ((now_date.getDate()).toString())).slice(-2);
|
||||
var now_hours = ("00" + (now_date.getHours().toString())).slice(-2);
|
||||
var now_minutes = ("00" + (now_date.getMinutes().toString())).slice(-2);
|
||||
var now_seconds = ("00" + (now_date.getMinutes().toString())).slice(-2);
|
||||
var now_seconds = ("00" + (now_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 = '';
|
||||
|
||||
Reference in New Issue
Block a user