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

Event start and end datetime, having issues with gmt time zone #274

Closed
juampiq6 opened this issue Nov 19, 2020 · 2 comments
Closed

Event start and end datetime, having issues with gmt time zone #274

juampiq6 opened this issue Nov 19, 2020 · 2 comments

Comments

@juampiq6
Copy link

Hi, nice library by the way.
Im having an issue where i specify an exact DateTime for the start and the ending of the event, when i create the event using the "createOrUpdateEvent".
On android, the dates are not transformed (not applied the time zone, -3 in my case).
On iOS, the dates are transformed ( my timezone is applied, so if I specify for example, today at 15:00, the event dates are transformed according to my time zone, -3, resulting on 12:00).

@andzejsw
Copy link
Contributor

Should close this after PR #297 is published.

@mzl1988
Copy link

mzl1988 commented Aug 11, 2021

device_calendar: ^4.0.1-dev.13167
The same problem still occurs after the time zone has been set

Future<void> configureLocalTimeZone() async {
    tz.initializeTimeZones();
    final String? timeZoneName = await FlutterNativeTimezone.getLocalTimezone();
    print(timeZoneName);
    tz.setLocalLocation(tz.getLocation(timeZoneName!));
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants