CALENDAR_Create Bug with day 31 of a month

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • CALENDAR_Create Bug with day 31 of a month

      Hi.
      I think there is a bug in in emWin V5.32 related to the CALENDAR_Create function.
      With this function it is not possible to initialize the calendar with day 31 of a month. E.g. if you set the current date to 31. Jan 2022 the dialog will not mark the current day.
      If you get the seletecd date after that the day will be 0.

      My workaround is to use CALENDAR_SetDate after CALENDAR_Create if the initial day is day 31 of a month. CALENDAR_SetDate works like expected and day 31 is marked as the current day then.

      Is this a known bug?
    • Hi rhum,

      Thank you for your bug report, but this issue has already been fixed with emWin V5.44. I would suggest that you update to the latest version which is V6.24.

      Best regards,
      Florian
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.