Comments (16)
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.
The date/time format has changed.
It now no longer accepts YYYYMMDD\THHmmss,
must now be YYYY-MM-DD\THH:mm:ss
Like so:
from calendar-link.
The replacement has been added in v1.3.1, thanks to @paulboocock!
from calendar-link.
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.
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.
Thanks for the response @AnandChowdhary . Can you please let me know approximate estimation date to fix this issue if possible?
from calendar-link.
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.
Thanks for the response @AnandChowdhary
from calendar-link.
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.
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.
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.
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.
thanks a lot. works on both outlook and office calendars.
from calendar-link.
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.
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.
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)
- Google calendar shows "Unknown Organizer" and guests does not show any
- Fix for ORGANIZER UNKNOWN in GMAIL event HOT 6
- Source map references files that are not found in published NPM package HOT 1
- Newline character escaping HOT 1
- Escape comma and newline in LOCATION for iCal HOT 4
- Calendars not displaying the correct time on outlook mobile website HOT 4
- Question: Outlook doesn't automatically render a valid url link in the description props HOT 1
- Feature request : Add support for recurrence HOT 2
- Tests that were removed HOT 3
- Pre-Select Calendar HOT 1
- Send a Link to Cancel an Event? HOT 5
- Event time not display on outlook mobile website HOT 1
- Outlook UTC link not working as expected HOT 1
- Security issue [email protected] HOT 1
- Office 365 deeplink doesn't work, loads forever with console error HOT 3
- [CRITICAL] Yahoo date calculation is incorrect HOT 2
- Alarm / alert / trigger settings missing HOT 1
- Outlook removes event subject HOT 1
- Add type declaration to modern ESM import in package.json HOT 3
- Can you make this available in a single js script so I can add it with the script tag? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendar-link.