Completed
Last Updated: 31 Jan 2024 08:56 by ADMIN
Release 2024 Q1
Ranjith
Created on: 14 Dec 2023 10:32
Category: Calendar & Scheduling
Type: Bug Report
1
Calendar: [Android] Exception with incorrect date on some devices with Android 14

System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.

This issue happens when using DayView, MultiDayView, Month view modes and when scrolling through the calendar to change the selected date. 

The issue happens on specific devices with android 14, Pixel 7, Galaxy S22. 

Workaround: 
Setting the time zone in calendar renderer to the DayView timelabelformat

public override bool TrySetViewMode(CalendarViewMode view, bool isAnimated)
        {
            if (view == CalendarViewMode.Day)
            {
                Control.DayView.DayEventsViewStyle.TimeLabelFormat.TimeZone = Java.Util.TimeZone.GetTimeZone("add time zone here");
            }

            return base.TrySetViewMode(view, isAnimated);
        }

5 comments
ADMIN
Didi
Posted on: 09 Jan 2024 08:30

Hi Ranjith,

Thank you for the update.

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ranjith
Posted on: 08 Jan 2024 15:41

Yes, using Azure windows agent instead of macos agent solves the issue.

No, I did not use the Telerik fix to solve it because with Telerik fix though the Calendar issue is solved; still all Xamarin and Telerik time controls continue to show UTC time. This is the reason it is not reproducible locally but only on Prod builds created using Azure pipeline. If you remember, I've suspected this and mentioned about this to you in the support ticket.

Here is the Xamarin Android reported issue https://github.com/xamarin/xamarin-android/issues/8028

They have mentioned it has been fixed in Xamarin.Android 13.2.1.2 but 13.2.1.2 is not available in macos agent.

Thanks,
Ranjith

ADMIN
Didi
Posted on: 08 Jan 2024 11:19

Hi Ranjith,

Could you please share whether you use the fix we sent you to solve the behavior?  Or just using the Azure windows agent solved the Xamarin Telerik Calnedar behavior on Android?

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ranjith
Posted on: 07 Jan 2024 17:48

Ok, finally this has been solved. This is only reproducible if we create the .apk file using a macsos-latest agent. As of today macos-latest uses macos-12. Android 14 has changes in Timezone classes which is not reflected in MSBuild or Xamarin.Android versions available in macos-12 Azure runner image.

To solve this, just create the .spk file using Azure windows agent with Visual Studio 2022 and MSBuild 17.0. This also solves Xamarin time controls displaying times in UTC format.

Ranjith
Posted on: 14 Dec 2023 14:17

Further to my previous update on the critical calendar issue, I'd like to clarify some details:

  • Device Specificity: While the issue primarily impacts users on Android 14 devices, it's not occurring across all models. I've personally tested it on both S22 and S22 Ultra devices with Android 14, and the issue only replicates on the S22. However, we've received reports from users experiencing it on S22 Ultra as well, suggesting a potential variability within the same model or configuration.

  • Timezone Workaround Limitations: As previously mentioned, setting the time zone to IST temporarily resolves the app freezing issue. However, this solution is not ideal for our US based users as appointment times would be displayed in IST, causing confusion and hindering their ability to effectively manage their schedules.