Ionic 6 - ion-datetime, show time in local clients timezone

Hello!

At the time of writing this the current time in ISO is 2021-12-17T15:38:56.197Z.
If I enter that as a value into the ion-datetime component it does not take in consideration what time zone the user is in.

For example users in Paris (France) will see the time listed in the component as 15:38 although it is equivalent to 16:38 in their time zone.

Did I miss anything or are we supposed to manually manipulate the time outside of Ionic before sending it in to the ion-datetime component?

Converting 2021-12-17T15:38:56.197Z to 2021-12-17T16:38:56.197+01:00 does work but maybe this should be built into ion-datetime as an option?

Hey there! Little known fact…the logic for auto-handling timezones was removed in favor of letting developer manage that themselves. Since every dev will have a unique situation, having timezone logic in place didn’t always work out well for folks.

We recently merged some docs in to clarify this, but they just haven’t been deployed yet. Here’s the docs source though for reference

Thanks for the quick answer!