laktak / wundermilk

Convert your tasks from :cow: RTM (remember the milk) to :star: Wunderlist
https://www.npmjs.com/package/wundermilk
2 stars 1 forks source link

bug in parser of RTM file #1

Open Arczi89 opened 7 years ago

Arczi89 commented 7 years ago

Firstly - thanks for great job! your program is very usefull :-)

There is a bug in parser of RTM file in convert.js - should be:

icalToolkit.parseToJSON(icsText, function (err, json) {
if (err) throw err;

var todo=json.VTODO;

todo.forEach(x => {
var title=x.SUMMARY;

instead of : var todo=json.VCALENDAR[0].VTODO;

after this changes it works correctly for me

laktak commented 7 years ago

Maybe the ical-toolkit interface has changed. I'll keep this issue open in case it helps someone else. Thanks.

gmetrail commented 5 years ago

Confirmed that this fixes the problem and this works great thereafter.