Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

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

$
0
0

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?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>