Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AllDay and date start / end bug #543

Open
ak1987 opened this issue Jun 18, 2024 · 0 comments
Open

AllDay and date start / end bug #543

ak1987 opened this issue Jun 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ak1987
Copy link

ak1987 commented Jun 18, 2024

Describe the bug
Error 400 on creating allday event (iOS):
To create or update an all day event you must provide calendar ID, event with a title and event's start date

Working:
var test = await _deviceCalendarPlugin.createOrUpdateEvent(Event(calendarId, title: 'Title 1', allDay: true, start: TZDateTime.local(2024, 6, 20), end: TZDateTime.local(2024, 6, 20)));

Not working:
var test = await _deviceCalendarPlugin.createOrUpdateEvent(Event(calendarId, title: 'Title 1', allDay: true, start: TZDateTime.local(2024, 6, 20)));

device_calendar.dart, lines ~236:

_assertParameter(
          result,
          !(event.allDay == true && (event.calendarId?.isEmpty ?? true) ||
              event.start == null ||
              event.end == null),
          ErrorCodes.invalidArguments,
          ErrorMessages.createOrUpdateEventInvalidArgumentsMessageAllDay,
        );

Expected behavior
All day event creates without date end parameter

Device(s) tested
iPhone 15 simulator

@ak1987 ak1987 added the bug Something isn't working label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant