Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70918

How to set current timezone to ion-datetime

$
0
0

@knandhucse wrote:

Hello,

My question may be a duplicate one but if I get the answer to my question, it will be very helpful.

I am using ion-datetime control in ionic 4. I want the control to take the current timezone without setting the default value to it.

When I open the picker, by default, it showing the UTC value instead of the current timezone value.

For example, The actual time is 01-Mar-2019 11:17 PM but when I open the picker, it is showing 01-Mar-2019 05:47 PM. How can I fix this without setting the default value to the control?

image

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70918

Trending Articles



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