Giter Club home page Giter Club logo

Comments (16)

paulboocock avatar paulboocock commented on May 30, 2024 3

I've been meaning to submit a PR for this but if you want a quick fix in your application, I've been doing this:

const outlook = calendar.outlook(event);
console.log('Outlook: ' + outlook.replace(/(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})/g, '$1-$2-$3T$4:$5:$6')); 

from calendar-link.

webaware avatar webaware commented on May 30, 2024 2

The date/time format has changed.

It now no longer accepts YYYYMMDD\THHmmss,
must now be YYYY-MM-DD\THH:mm:ss

Like so:

https://outlook.live.com/calendar/0/deeplink/compose?startdt=2020-08-12T00:00:00&enddt=2020-08-13T12:00:00&subject=Hello%20World&body=Hello%20World

from calendar-link.

AnandChowdhary avatar AnandChowdhary commented on May 30, 2024 2

The replacement has been added in v1.3.1, thanks to @paulboocock!

from calendar-link.

paulboocock avatar paulboocock commented on May 30, 2024 1

Hi @AnandChowdhary I see that InteractionDesignFoundation/add-event-to-calendar-docs#10 is merged. Any rough ETA on when it might be fixed in this repo?

from calendar-link.

AnandChowdhary avatar AnandChowdhary commented on May 30, 2024

Thanks for opening this issue, @govardhan5. Perhaps Outlook changed some of the parameter names when I updated the UI, I'll have a closer look.

from calendar-link.

govardhan5 avatar govardhan5 commented on May 30, 2024

Thanks for the response @AnandChowdhary . Can you please let me know approximate estimation date to fix this issue if possible?

from calendar-link.

AnandChowdhary avatar AnandChowdhary commented on May 30, 2024

Honestly, my plate is a little full at the moment. I might have some time this weekend to look into this, otherwise I'll make sure I get into it next week.

from calendar-link.

govardhan5 avatar govardhan5 commented on May 30, 2024

Thanks for the response @AnandChowdhary

from calendar-link.

AnandChowdhary avatar AnandChowdhary commented on May 30, 2024

That's right, thanks! We're discussing this in InteractionDesignFoundation/add-event-to-calendar-docs#10 and I'll push an update to this repo soon.

from calendar-link.

webaware avatar webaware commented on May 30, 2024

Ah, cool. I did look at that project but somehow missed the PR / issue. Good to see the docs will get the update too! 👍

from calendar-link.

AnandChowdhary avatar AnandChowdhary commented on May 30, 2024

Feel free to pick this up! I'll need more time to get to it; though it's trivial, my hands are pretty full these days.

from calendar-link.

suit0r avatar suit0r commented on May 30, 2024

an updates on this? the package works great otherwise, but the outlook/office365 links don't receive correct dates, so it defaults to today. i'm passing it an .toISOstring(), but i tried a bunch of things, and nothing worked. google works fine, with ISO.
this is the ics in comparison:

VERSION:2.0
BEGIN:VEVENT
URL:MYURL.com
DTSTART:20200830T160000Z
DTEND:20200830T173000Z
SUMMARY:My meeting
DESCRIPTION:Description here
LOCATION:Some location
END:VEVENT
END:VCALENDAR

from calendar-link.

suit0r avatar suit0r commented on May 30, 2024

thanks a lot. works on both outlook and office calendars.

from calendar-link.

AnandChowdhary avatar AnandChowdhary commented on May 30, 2024

I've been meaning to submit a PR for this but if you want a quick fix in your application, I've been doing this:


const outlook = calendar.outlook(event);

console.log('Outlook: ' + outlook.replace(/(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})/g, '$1-$2-$3T$4:$5:$6')); 

Would love a PR!

from calendar-link.

jonwhuang avatar jonwhuang commented on May 30, 2024

The outlook/office365 fix doesn't seem to take timezone into account.

If I pass in 20200924T170000Z to 20200924T180000Z for start/end times, it shows different values for Google vs Outlook.

Google converts the times to the user's timezone while outlook seems to always use 5-6PM.

from calendar-link.

frysztak avatar frysztak commented on May 30, 2024

I'm still experiencing this issue at version 2.0.11. Instead of YYYY-MM-DD, YYYYMMDD format is used

from calendar-link.

Related Issues (20)

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.