-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No events being shown: "invalid date-time value" #376
Comments
I see two bugs here:
|
Thanks for taking a look at this/tagging and commenting. Is there anything I can do? Or do you have enough data? Thanks a lot. |
I think I have enough data to fix this. |
Is there news? Let me know if I can help :) |
Can you provide me sample ics please. |
What I did:
Get response from REPORT request to https://nc.***.nl/remote.php/dav/calendars/***/personal/ Looked for the string "2017-05-02T::". No results (?). Then I looked for 20170502 and got 3 matching VEVENTS:
Is this what you were looking for? |
Did you disable all other calendars and only try to load the broken one?
😕 Can you please double check? Searching for |
Are the events maybe being rewritten somewhere? I can't really explain it otherwise. Thanks a lot for your time though! |
Ah, obviously 🙈 |
I see this code:
That will not match the time-less thing I suppose :). -edit- just see your post, think we got something :) |
it's only applied when the ics data contains 'T::'. (https://github.com/nextcloud/calendar/blob/master/js/app/models/veventModel.js#L327) we just need to add an extra rule if the length of the date is 8 but there is no VALUE=DATE |
Is it hard to add a 8-length check to that veventModel.js? I tried editing on my personal server but js seems to be minified in some way... |
I can confirm this issue still persists on 20.0.9; for example importing https://splan.hdm-stuttgart.de/splan/ical?lan=de&puid=20&type=config&lc=,oJ,m,Wqb,d,b,b,b,g&oex=false, my Uni's schedule, fails with: could not convert calendar object Error: invalid date-time value: "--T::"
at Function.ICAL.Time.fromDateTimeString (ical.js:5901)
at Object.decorate (ical.js:781)
at t._decorate (ical.js:2939)
at t._hydrateValue (ical.js:2922)
at t.getFirstValue (ical.js:3068)
at Function.value (property.js:458)
at Function.value (abstractComponent.js:544)
at Function.value (abstractComponent.js:550)
at Function.value (abstractComponent.js:550)
at Function.value (calendarComponent.js:144) |
Steps to reproduce
Expected behaviour
Events should show up in my calendar ;)
Actual behaviour
UI loads, my 'contacts birthday' calendar loads fine, my 'Personal' calendar does not work. It DOES work on my android phone though(!), through CalDAV over DavDROID.
"Does not work" means the spinner keeps spinning and javascript log shows errors.
Server configuration
Operating system: Centos7 with EPEL and all patches applied
Web server: httpd-2.4.6-45.el7.centos.x86_64
Database: sqlite3
PHP version: PHP Version 7.0.16
Server version: Nextcloud 11.0.2 (production)
Calendar version: Calendar 1.5.2
Updated from an older installed version or fresh install: Updated from older
Signing status (ownCloud/Nextcloud 9.0 and above):
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: FireFox 52.0
Operating system: Fedora 25
CalDAV-clients: Browser (not working), android (working), thunderbird (working)
Logs
Web server error log
Error log does not hold a lot of entries:
Log file (data/owncloud.log)
Browser log
Suspicion
I think some event dates are broken and I want to blame my imported facebook birthdays, but I have no evidence of that.
The text was updated successfully, but these errors were encountered: