I have a api which needs to store a utc+timestamp in mongodb. I am trying to save the value in mongodb which is saving in UTC time. While retreiving i am trying to send the current time using the below code
return moment.tz("2022-02-04T08:19:38Z","Asia/Seoul").format()
The above code is working fine. Now i have a use case as the input format will be
2022-02-04T08:19:38Z+09:00
I need to get the timeZone from the offset above likeif i pass +0900 i need output as "Asia/Seoul",Any idea as how can I proceed forward? Kindly help