Scheduler yearly recurring pattern for leap years

5 posts, 0 answers
  1. Josip
    Josip avatar
    3 posts
    Member since:
    Feb 2016

    Posted 04 Feb Link to this post

    Hello,

     I use scheduler to show my events and I have events that should be shown for each year on a specific date.

    I use yearly reference rule and everything works fine until even's date is not 29th February. In that case my event get's pushed to 1st March even if current year has that date.

     The only case in which my date doesn't get pushed to 1st March is if event's date is set to 29th February of the current year.

     

    Is there any way to handle this as I didn't find any info regarding leap years in the documentation?

     

    Thanks.

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 08 Feb Link to this post

    Hello Josip,

    In general, the widget will not show the recurring event if February 29th is missing (not a leap year): Could you share the event's recurrence rule in order to test it locally? 

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Josip
    Josip avatar
    3 posts
    Member since:
    Feb 2016

    Posted 10 Feb in reply to Georgi Krustev Link to this post

    Recurrence rule used is: "FREQ=YEARLY"
  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 12 Feb Link to this post

    Hello Josip,

    Indeed, the recurrence engine will move the event to the next month. This is the default behavior of JavaScript Date object, which we do not modify.

    The only solution in this case is to use a more specific recurrence rule:
    • recurrenceRule: "FREQ=YEARLY;BYMONTH=2;BYMONTHDAY=29"
    like in the test demo:
    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Josip
    Josip avatar
    3 posts
    Member since:
    Feb 2016

    Posted 12 Feb in reply to Georgi Krustev Link to this post

    Thanks.

    It's not ideal but it works. It would be nice if we could use just yearly and then specify behavior for this case.
Back to Top
Kendo UI is VS 2017 Ready