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

How to get the device timezone (Olson format0

$
0
0

@nwkeeley wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49189

Trending Articles