I have a time string like this 2021-12-29T01:30:00.105Z
. I want to add offset for a timezone without changing the date and time. So it should look like this after conversion - 2021-12-29T01:30:00+08:00
for "Asia/Kuala_Lumpur" timezone.
So 2021-12-29T01:30:00.105Z
-> 2021-12-29T01:30:00+08:00
I cannot do a string replace since the timezone will be dynamic and does not always has to be "Asia/Kuala_Lumpur".
I am using moment and moment-timezone libraries and have tried different ways to get the required result but none seems to work.
Please help.