Coder Social home page Coder Social logo

ics.js's People

Contributors

asr1 avatar blaiseit avatar connorbode avatar jmuia avatar khornberg avatar nhunt3 avatar nwcell avatar snayagar avatar wavesonics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ics.js's Issues

Safari cannot open the file

On running the demo page in iPhone 5s iOS 7.1.1 new tab opens for a litle time later "Safari can't open the file" shows.

Where as in iPhone 5 iOS 7.0.1 new tab opens nothing no activity is noticed.

Special characters displayed incorrectly

Hi,

I tried to change the formatting for ics-files generated to UTF-8, but with no avail.
German umlauts (e.g. ü Ü) and French letters ( e.g. é É), are displayed incorrectly. A letter "ü" would translate into "ü".

Redirects Page

Is there a way to do this without redirecting the entire page to show the ics file?

Demo is broken

The Single Event ist not working. It throws some errors on console.

Doesn't work at all with Safari

Safari opens a blank page with no content and no download happens :(
I can't seem to pinpoint where the problem is, but if you're using the location(data method, I don't think it works at all in safari.. and if you're creating an A tag with the download property, it isn't supported by safari.

Wrong line separator

In the RFC for iCalendar it is required that the line ending is CR LF (\r\n), it should never be LF alone (\n).

Not working on iPhone devices

This package is not working on iPhone devices, ics file can be downloaded but not inserted into iPhone's calendar. Not working on all iOS devices.

download ics file in chrome and firefox

Hello,
Please note that in Safari, the export/download ics file was done successfully.
Whereas in Chrome and Firefox it did not download! Please help!
Thanks.

Setting UID and Organizer

Hello,
I've created a Qualtrics survey where people select an appointment and it generates an .ics file for them (so that I don't have to do it manually). Which is working well. I would like to upgrade this feature so that I can make my inbox the Organizer, the downloader as an attendee, and collect the RSVP responses to the correlating event (with matching UID) on my own calendar.

Ideally, I'd like to add Organizer, UID, and Attendee as parameters to the addEvent function. However, I've not been able to make this work. I've adjusted the parameters to addEvent in the ics.js file but it is still not working. My guess is that it's something to do with the ics.deps.min.js file, but I can't really make sense of that at all, so I'm not sure what to edit there.

Any insights appreciated. Thanks!

Line breaks in the description

I've tried adding a line break "\n" in the description but it doesn't work. It creates a line break in the file but the "\n" needs to end up in the ics file.

ICS won't download on mobile

Guys, this is amazing. Thank you so much for creating it.

The issue I'm having is this: the ICS files won't download on mobile devices. In Android, nothing happens. In Chrome, a new window pops up but nothing happens.

Any thoughts?

I'm using your IE version of FileSaver.

S

wrong month

In Javascript the months are zero-based, so Date.getMonth() is a value from 0 to 11.
The event is showing one month early.

Add hyper link to an external page.

Hi!
I am using this API and I was trying to add a hyper link for a external page and it seems the code is only working for text..

I am trying to add something like:

Link

Use server side in node.js?

Was thinking to use this in node.js server side when generating email and adding the .ics as an attachment. Would that work?

Webcal link support

Would it be possible to make the button that downloads the file a webcal protocal link? This would be great for subscriptions to the calendar. Especially if you are using a json api to create the events.

Hours

if (start_minutes + start_seconds + end_minutes + end_seconds != 0) { start_time = 'T' + start_hours + start_minutes + start_seconds; end_time = 'T' + end_hours + end_minutes + end_seconds; }

i think it should plus start_hours and end_hours , when i set "2016-5-30 11:00" , the output is '20160530'

thanks

RRule Object

Hi,

It's a how-to question not an issue but don't know where to ask.

I have a content search webpart that using a display template to show the events. I followed the steps in this link: http://www.avtex.com/2016/04/generate-and-download-an-ical-event-in-sharepoint/.
My webpart now is showing all items and i added a "Add to Calendar" button under each event.
I even managed to know which "ctx.currentitem" is a recurring event. The problem now reside on how to expand this item to get all the information to construct the "RRule object" to be able to add to "cal.addEvent" function.

Publish package to npm

I use npm for developing client side. Do you think you could publish this package on there?

Also, you should probably move your package.json dependencies to devDependencies

Fore .ics to download

Hi,

is it possible to force the download of the appointments/.ics files that they can open in the right app like calendar on iOS?

In my situation it shows me only that the file is unknown and in the url: blob:https://portal.hm.edu/b5a32598-e95f-4fa4-9083-c071d7aa580f

IMG_0734

In Chrome on Win10 I can online the the source when I'm clicking the link to download.
Only Safari on a Mac is handling it right.

Thank you for your help.

If you need an example go to https://portal.hm.edu/studieninformationstag/2020/programm/vortraege/

Lacking Minute Issue

First off, wonderful tool you've made here, and thank you for it.

I'm finding that when my start- and end-time are all zeros and in the PM, only dates and no times are produced in the resulting ICS file.

Example:

cal_single.addEvent( 'Title', 'Description and such...', '4/20/2014 6:00 pm', '4/20/2014 7:00 pm');

Results in...

DTSTART;VALUE=DATE:20140420
DTEND;VALUE=DATE:20140420

Whereas...

cal_single.addEvent( 'Title', 'Description and such...', '4/20/2014 6:01 pm', '4/20/2014 7:01 pm');

Results in...

DTSTART;VALUE=DATE:20140420T180101
DTEND;VALUE=DATE:20140420T190101

Hitting a deadline right now, so I'm defaulting end times to 30 minutes after the start times. Once I'm done with this, I'll try to go in and isolate exactly where this is occurring in the code. I'll let you know what I find.

Testing done in Chrome 34.0.1847.116 m.

Time doesn't show up if minutes and seconds are 0

If the time is like 12:00 pm, i.e. minutes are not provided, then the time does not show up in the ics calendar. For example:

var cal = ics();
cal.addEvent('Demo Event', 'This is a one hour event', 'location', '9/28/2014 12:00 pm', '9/28/2014 1:00 pm');
cal.download();

will be downloaded as an all day event.

I believe it will be fixed if we change:
https://github.com/nwcell/ics.js/blob/master/ics.js#L77
to:
if (start_hours + start_minutes + start_seconds + end_hours + end_minutes + end_seconds != 0) {
(although I did not test this thoroughly)

saveAs is not defined

Hi,
thx for maintaining the repo again. Really like the library.
Unfortunately I'm facing some error now when trying to cal.download();:

Uncaught ReferenceError: saveAs is not defined
    at Object.download (ics.js:223)

In addition it would be nice to have the minified version updated as well.
I would fix it myself and provide an patch but I don't know when I will find time to do so. So far I wanted to point out the issue.

BR, Matthias

Why is rrule lowercase?

Google Calendar (via iCal) is rejecting ICS files for recurring events generated by this library because the rrule property is lowercase. I'm happy to submit a PR, but I wanted to open an issue and see if it was lowercase for a specific reason. In the ICS files I'm generating, it's the only property that's lowercase.

Failing example:

cal.addEvent('Foo', 'Bar', 'Baz', start, end, {
  freq: 'WEEKLY',
  interval: 4
});

Working example (resolved by writing the property myself with an uppercase RRULE):

cal.addEvent('Foo', 'Bar', 'Baz', start, end, {
  rrule: 'RRULE:FREQ=WEEKLY;INTERVAL=4'
});

How to set the time zone of an event?

When I put my events into Apple Calendar, they show up as "Time zone: Floating". This makes sense since I didn't provide any time zone to ics.js when I created the events. That leaves the question: how do I provide the time zone?

Time is ignored

I'm formatting the begin variable as "2013-07-30 15:00:00", which is a legit string for Date.parse (outputted as "1375210800000"). I've also got the end variable formatted the same way: "2013-07-30 19:00:00". Sadly, Calendar (Version 7.0 (1835.1)) on OS X 10.9.1 does not recognize the time–only the date.

No License provided

Hi Travis, Kyle

the idea is great and I would like to use it.
But: You do not say which license you publish under, so I have to assume the most restrictive one.
And that means: I cannot use it :-(

Would you be willing to add a license?

Kind regards,
Sebastian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.