Replies: 2 comments
-
Can you send the full stack trace of the error please? |
Beta Was this translation helpful? Give feedback.
-
I give you the code I use (made with help of chatgpt fot this part), I suppose the problem is not in calendar.js but in the code. And a capture of the console log in Firefox. In the controler in PHP : ` private function loadUserEventsFromFile($user)
And the javascript in my agenda page : ` <script>
} function importEventsFromFiles(files) {
}
} function isValidDate(date) { window.onload = function() {
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I export the events in a json file when a new event is added. It's working (great thanks to you).
But when I try to import this file, I have errors about date format (tryed convertToIso8601) :
endDate invalide pour l'événement: Object { from: null, to: "2024-11-15T08:20:00+00:00", title: "test 22", description: "", location: "", group: "", isAllDay: false, showAlerts: true, showAsBusy: true, color: null, … } alertOffset: 0 color: null colorBorder: null colorText: null created: "2024-11-09T04:34:20.207Z" customTags: null description: "" from: null group: "" id: "124e9d5a-8723-6f0b-9310-8a8c96d875ba" isAllDay: false lastUpdated: "2024-11-09T04:34:20.207Z" location: "" repeatEnds: null repeatEvery: 0 repeatEveryCustomType: 0 repeatEveryCustomValue: 1 repeatEveryExcludeDays: Array [] showAlerts: true showAsBusy: true title: "test 22" to: "2024-11-15T08:20:00+00:00" type: 0 url: ""
This is an event in my exported json file :
[ { "from": "2024-11-12T13:20:00.000Z", "to": "2024-11-12T13:50:00.000Z", "title": "test 1", "description": "", "location": "", "group": "", "isAllDay": false, "showAlerts": true, "showAsBusy": true, "color": null, "colorText": null, "colorBorder": null, "repeatEveryExcludeDays": [], "repeatEnds": null, "url": "", "repeatEveryCustomValue": 1, "type": 0, "customTags": null, "alertOffset": 0, "repeatEvery": 0, "repeatEveryCustomType": 0, "id": "19855f6d-4cb8-1dfd-e08c-f46515070c70", "created": "2024-11-09T04:34:04.810Z", "lastUpdated": "2024-11-09T04:34:04.810Z" } ]
And this error, I don't what it is about ?
Uncaught TypeError: h.name is undefined
Thanks, have a nice day,
Patrice
Beta Was this translation helpful? Give feedback.
All reactions