Jump to content

Problem with UniCalendarpanel for the month october


d.bernaert

Recommended Posts

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

Link to comment
Share on other sites

  • 2 months later...
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

Link to comment
Share on other sites

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;

 

  • Upvote 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...