DHTMLX / scheduler-recurring-events-dotnet

# Recurring Events Helper for dhtmlxScheduler on ASP.NET/ASP.NET Core backends
3 stars 4 forks source link

GetOccurence return bad date for monthly event #1

Closed bernardjeef closed 2 years ago

bernardjeef commented 4 years ago

I have this recurring in my database : image

This event is supposed to be recurring the first monday of each month, 10 times. I was expecting the first occurence to be 3 august

I'm calling "GetOccurences" like this : var helper = new DHXEventsHelper(); var occ = helper.GetOccurrences(new List<Recurring>{changedEvent }, changedEvent.start_date.Value, changedEvent.end_date.Value);

I'm getting all thoses start_dates image

MaksimLakatkou commented 2 years ago

I have this recurring in my database : image

This event is supposed to be recurring the first monday of each month, 10 times. I was expecting the first occurence to be 3 august

I'm calling "GetOccurences" like this : var helper = new DHXEventsHelper(); var occ = helper.GetOccurrences(new List<Recurring>{changedEvent }, changedEvent.start_date.Value, changedEvent.end_date.Value);

I'm getting all thoses start_dates image

Hello bernardjeef, We checked the GetOccurrences method, we have confirmed the bug and added it to our tracker, thank you for paying attention to it. We’ll fix the bug as soon as we can. You can write to support if a fix is needed faster.

AlexKlimenkov commented 2 years ago

H! we're working on the fix, which is currently in GS-1721 branch - https://github.com/DHTMLX/scheduler-recurring-events-dotnet/tree/GS-1721 The version in this branch should be stable and should fix problematic cases. We'll do some additional research in case we miss anything. If everything is good, the branch will be merged into master in a couple of days