please help to enter correct End by date.

Hello,
I am using recurring calender for my site. When i checked “End by” radio and put my desire end date for recurring my event in weekly view it doesn’t enter correct endDate in database. please tell me how to solve this problem?? Or is this the bug of dhtmlx calender??

This is expected, for recurring events end_date stores the end_date of last instance in recurring serie.