logseq-calendars-plugin icon indicating copy to clipboard operation
logseq-calendars-plugin copied to clipboard

parsing calendar with changed prefered data format

Open jeremyforest opened this issue 3 years ago • 13 comments

I think there is an issue with importing events when the preferred date format is something other than the default one (in the form MMM do, yyyy). If I change the format, then only the calendar name gets imported but non of the content of the events for that day (seems like the parsing is not working correctly in that case but I could be wrong on that).

Might also relate to https://github.com/sawhney17/logseq-calendars-plugin/issues/6#issuecomment-1034394876

jeremyforest avatar Feb 10 '22 16:02 jeremyforest

Can you make sure you first restart after changing the format and also make sure you're on the latest version? On 10 Feb 2022, 8:07 PM +0400, Jeremy Forest @.***>, wrote:

I think there is an issue with importing events when the preferred date format is something other than the default one (in the form MMM do, yyyy). If I change the format, then only the calendar name gets imported but non of the content of the events for that day (seems like the parsing is not working correctly in that case but I could be wrong on that). Might also relate to #6 (comment) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

sawhney17 avatar Feb 10 '22 16:02 sawhney17

Tried restarting logseq after changing the date format but that doesn't solve the issue. I haven't made a thorough analysis but it seems some format work, some partially work and some don't. Probably something to do with parsing the actual E/M/D/Y ?

Logseq 0.5.9 calendar plugin 1.1.6

jeremyforest avatar Feb 14 '22 13:02 jeremyforest

Hmm. That seems like a bug. What is your date format? I'll do some testing with that to try and identify the ones that don't work.

sawhney17 avatar Feb 18 '22 06:02 sawhney17

Also, could you update to the latest version and check the develoepr console for a message with current date: Does that message return your correct date format?

sawhney17 avatar Feb 18 '22 06:02 sawhney17

I've just updated to 1.2.3 to attempt a fix. Do report back if it works.

sawhney17 avatar Feb 18 '22 10:02 sawhney17

@sawhney17 thanks for the push ! Let me check.

Hum ok that actually broke my current date format which is MMMM do, yyyy. Instead of importing the events, I now have only the calendar names. No events are imported. Current Date: February 18th, 2022 which is the correct format.

Let me other formats. Current Date: Friday, 02/18/2022. Date format seems right. But still broken as well for import.

index.61e956d2.js:4 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'substring') at Po (index.61e956d2.js:4) at index.61e956d2.js:4

jeremyforest avatar Feb 18 '22 11:02 jeremyforest

Haven't seen this issue before. Does using this calendar link in your settings work?

https://calendar.google.com/calendar/ical/rao6fvrrsq6mdorf9n30fs6mk4%40group.calendar.google.com/private-18ccd424400ef24c5d343ec93b289590/basic.ics

On 18 Feb 2022, 3:12 PM +0400, wrote:

Cannot read properties of undefined (reading 'substring') at

sawhney17 avatar Feb 18 '22 11:02 sawhney17

I believe I am bumping up against this bug. My preferred date format is set to "d MMMM yyyy". I get messages that my calendars are being fetched and filtered, and then "No events for the day detected". Logseq 0.8.0, plugin 2.2.2.

Any hope of getting this plugin working in my Logseq?

matthewn avatar Aug 12 '22 03:08 matthewn

Does it work in a graph with default date format? You can create a blank graph and test. On 12 Aug 2022 at 7:41 AM +0400, matthewn @.***>, wrote:

I believe I am bumping up against this bug. My preferred date format is set to "d MMMM yyyy". I get messages that my calendars are being fetched and filtered, and then "No events for the day detected". Logseq 0.8.0, plugin 2.2.2. Any hope of getting this plugin working in my Logseq? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

sawhney17 avatar Aug 12 '22 08:08 sawhney17

Tested with a blank graph, and the plugin worked as expected.

matthewn avatar Aug 12 '22 23:08 matthewn

I have the same issue here.

reinaldoluckman avatar Oct 11 '23 23:10 reinaldoluckman

Here is the developer console screen shot. Looks like it is getting the events, but an error occurs after that.

Screenshot 2023-10-11 at 20 32 18

reinaldoluckman avatar Oct 11 '23 23:10 reinaldoluckman

Changed the date format to Logseq default (MMM do, yyyy) and importing went fine.

reinaldoluckman avatar Oct 13 '23 00:10 reinaldoluckman