Comments (4)
Hi,
This is actually a fairly difficult problem - most ical emitters don't correctly implement the spec (see http://tools.ietf.org/html/rfc2445#section-4.8.7 for change management) - so we'd have to create some heuristic to see how to check whether events had been updated.
I'd love to have this in the library - if you end up working on this problem then do let me know, perhaps we can collaborate and get this in the library.
from ical.js.
Aha, okay, good context. Thanks for the answer!
Given the difficulty, I'm more likely to make something comparably half-assed for my edge case (coming from the Mac's iCalendar), or to even circumvent the problem completely (in 3 years my calendar actually has totalled only 900 entries in it) - I could emit everything, and record what I've seen, and filter out anything I've seen before.
Best, Martin.
from ical.js.
yeah, it's fairly easy to just iterate through entries if your dataset is gonna be small - keep in mind that entries may be updated as well as just created, that's why it's not as simple as keeping a set of event id's. If you are fairly confident that this edge case isn't applicable then it's fairly easy.
from ical.js.
Fair point about records changing. As my data comes from a timesheet app, in general only the current period entry could be mutating.
That said, I might as well record the record as I last saw it... ;)
Best, M.
from ical.js.
Related Issues (20)
- All Day event indistinguishable from 24-hour event HOT 3
- Please consider republishing to npm HOT 2
- length is not defined exception when parsing
- camelCase rrule options
- 403: Forbidden For Airbnb iCal HOT 3
- No way to tell if an event is an all day event HOT 1
- Refactor ical, relocating parsing code into new module suitable for non-Node.js environments HOT 3
- if calendar data has linux line ends, parseICS doesn't parse data
- Recurring events created in DST are off by an hour after DST HOT 8
- Replace `request` lib with native http fetch or something lightweight HOT 4
- error parsing blank RRULE line
- Support ECMAScript module HOT 1
- want to add tests for fixing microsoft timezones, and timezones in general, but existing tests fail on test5 and test8
- windows timezones are not supported
- Automated dependency updates HOT 1
- Create new npm release after bump of rrule HOT 1
- Recurrences is declared as an array and used as an object
- Recurring exdates not picked up by parser. HOT 3
- Daylight saving not managed properly
- TypeError: self.getLineBreakChar is not a function 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 ical.js.