openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

UI5 Planning Calendar "TypeError: Cannot read properties of undefined (reading 'getTime')" - UTC datetime - SAP CAP Framework

Open rgadirov opened this issue 2 years ago • 3 comments

Dear UI5 experts,

I have implemented the latest version of SAPUI5 planning calendar and I have bound it against our (CAP) data model. The projects are shown most of the times, but sometimes we get the issue: "TypeError: Cannot read properties of undefined (reading 'getTime')". The project related start- and enddatetime are maintained but this is ignored by the framework. It seems that the start- and end date times are not being saved as UTC date time by the SAP CAP framework. I can provide the source code via git or you can try to access my DEV space. As soon as we refresh the planning calendar, the projects are being shown. We got rid of that issue back then and it re-appeared. There is also this similiar issue (closed) https://github.com/SAP/openui5/issues/2524#issuecomment-1643399628. The app is part of our product development and really important for showcases and future sales.

Please tell me what you need to reproduce and to access the apps and we can continue the communication on this behalf.

Thank you for your support.

OpenUI5 version: 1.116.0

Browser/version (+device/version): Google Chrome (latest)

Any other tested browsers/devices(OK/FAIL): No

URL (minimal example if possible): Private message possible?

User/password (if required and possible - do not post any confidential information here): Private message possible?

Steps to reproduce the problem:

  1. Open Planning Calendar which is bound against CAP data model
  2. Refresh or navigate back and frontwards
  3. Open Console and check for the error message

What is the expected result? Planning Calendar should load every listed project entry.

What happens instead? ...but instead does not show anything or only after a refresh.

Any other information? (attach screenshot if possible) See attachments

rgadirov avatar Aug 01 '23 17:08 rgadirov

Hello @rgadirov , As there is an ongoing customer case created by your organization and internally tracked with the case ID 002075129400006455262023, please continue with the opened customer case. The status of the issue will be updated here in GitHub as well.

50gY avatar Aug 01 '23 18:08 50gY

Fixed by https://github.com/SAP/openui5/commit/6fc8110c09777fff785b0b65eec071f48e412aac

boghyon avatar Oct 23 '23 11:10 boghyon

Can you implement the same fix for the intervalHeaders?

mokgavdilabs avatar Nov 26 '25 08:11 mokgavdilabs