How to add full timezone to date.
gkasireddy202 opened this issue · comments
Why it is needed?
Hi Team,
I need to send full timezone like Amercia/New_York along with timezone EDT to API.
console.log(moment("11:19 AM").tz(RNLocalize.getTimeZone()).format('ddd MMM DD HH:mm:ss z YYYY'));
console.log(RNLocalize.getTimeZone());
output: Fri May 05 11:20:00 IST 2023
output: Asia/Kolkata
I need to add a timezone in the date like Fri May 05 11:20:00 Asia/Kolkata IST 2023.
Possible implementation
No response
Code sample
console.log(moment("11:19 AM").tz(RNLocalize.getTimeZone()).format('ddd MMM DD HH:mm:ss z YYYY'));
console.log(RNLocalize.getTimeZone());
output: Fri May 05 11:20:00 IST 2023
output: Asia/Kolkata
@gkasireddy202 Hello! This isn't a feature request, more asking for help and this is not the right place to do that.
I recommend StackOverflow.