how to get timezone name from device ? Currently i am using getDatePattern() method but it returns timezone as null
Hi, @kiran_nd02
try below native plugin for getting timezone and name of the timezone
getDateNames & getDatePattern
thanks
1 Like
thanks, I have referred the same but getting following output
{utc_offset: 19800, dst_offset: 0, timezone: "", pattern: ""}
My code is as below
this.globalization.getDatePattern(
{ formatLength: 'short', selector: 'date and time'} )
.then(res => console.log(res))
.catch(e => console.log(e))
Please help me
this plugin is depricated now.