Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How to get the device timezone (Olson format0

$
0
0

Hello,

When I make a POST request to my API server I pass a timestamp that relates to my data. I also pass the timezone that the user is currently in. How with ionic/cordova can I get the device timezone? I've a native iOS app that I built where getting the device timezone was quite simple however my ionic app is for android and I can't see a way to get the timezone.

I do not want the timeOffset as that does not take into consideration daylight savings.

Thanks
-Nate


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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