builttoroam / device_calendar

A cross platform plugin for modifying calendars on the user's device
https://pub.dev/packages/device_calendar
BSD 3-Clause "New" or "Revised" License
260 stars 263 forks source link

Reducing use of getLocation #425

Open Mrtcndkn opened 2 years ago

Mrtcndkn commented 2 years ago

I handle my timezones and locale completely separated I've a whole team that handles that and forcing TZDateTime this type on the events and make me implement a huge non-readable getLocation method made me throw away the library. I'd rather kickout the whole feature rather than implementing that. Please re-consider this approach. I appreciate your work on open source community, but this kinda makes it impossible to use unfortunately.

thomassth commented 2 years ago

This is a solid idea. However there's also a need to handle calendar events with timezones. Do you have any ideas to 'thin' the library without losing too many functions?

jnelle commented 1 year ago

Have you considered this?

https://stackoverflow.com/a/38732745

thomassth commented 1 year ago

Have you considered this?

https://stackoverflow.com/a/38732745

Looks promising

If iOS has something similar, maybe we can make a workaround

Copying the mentioned API here for clarity: https://developer.android.com/reference/java/util/TimeZone.html

jnelle commented 1 year ago

Have you considered this? https://stackoverflow.com/a/38732745

Looks promising

If iOS has something similar, maybe we can make a workaround

Copying the mentioned API here for clarity: https://developer.android.com/reference/java/util/TimeZone.html

Should be also possible for iOS

https://developer.apple.com/documentation/foundation/timezone