d.bernaert Posted October 16, 2020 Share Posted October 16, 2020 Hi, I'm having something funny and it's only for the month october of this year. All events I'm adding to the calendar are displayed in the day cell of the added date - 1. For instance, if I add an all day event with startdate 27'th of october and enddate of the 27th of october, it's displayed on the 26th. This is not the case for other months. Any idea? Thx, Dominique Quote Link to comment Share on other sites More sharing options...
d.bernaert Posted October 16, 2020 Author Share Posted October 16, 2020 Apparently it is not the whole month that is displayed wrong. It's mainly the last days of october, for instance, the 29th, 31th. Dominique Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 16, 2020 Share Posted October 16, 2020 1 hour ago, d.bernaert said: It's mainly the last days of october, for instance, the 29th, 31th. Hi Dominique, How about October 25th? Quote Link to comment Share on other sites More sharing options...
d.bernaert Posted October 16, 2020 Author Share Posted October 16, 2020 The 25th is fine. I have the impression that it is only on lines where days of the new month are visible. Dominique Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted December 31, 2020 Share Posted December 31, 2020 On 10/16/2020 at 11:56 AM, Sherzod said: Hi Dominique, How about October 25th? Hello Sherzod, Hoping all is OK. I have also a strange behavior on 30/03/2021 when : FirstDayOfWeek = dowSunday and View = Week Resul t: It add an Event to day - 1 ?! I could'nt say anything to my customer ! Could you please see TestCase in attachment ? Big Thx. Last Unigui Build 1542 + Delphi Sidney 10.4.1 UniCalendarPanel_Bug_week_View.7z Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 31, 2020 Share Posted December 31, 2020 Hello! Thank you! I will check your testcase. But it may take a Year. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 31, 2020 Share Posted December 31, 2020 1 hour ago, Abaksoft said: I have also a strange behavior on 30/03/2021 when : FirstDayOfWeek = dowSunday and View = Week 30 minutes ago, Sherzod said: I will check your testcase. But it may take a Year. Can you check with this approach? procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniCalendarPanel1 do begin ShowDayView := True; ShowWeekView := True; ShowMonthView := True; ShowNavBar := True; JSInterface.JSConfig('defaultView', ['week']); JSInterface.JSAddListener('beforerender', 'function(){'+ ' this.setTimezoneOffset(-180);'+ ' this.updateTimezoneOffset();'+ ' this.setView("month");'+ '}' ); end; end; 1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted December 31, 2020 Share Posted December 31, 2020 Thank you Maestro. I will check it the next year ان شاء الله 1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted January 1, 2021 Share Posted January 1, 2021 Many thx Maestro. Your code works like a sharm I opend a ticket support to integrate your solution on the next release : FSD-3105 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.