I have a time from the server with returns
2022-10-16T13:17:05.885+00:00
The time zone is 'Asia/Manila'. This time represents October 16, 2022, 9:17pm
I want to convert this time to be read as October 16, 2022, 9:17pm, or the same as 'Asia/Manila' even if the client computer is of different time zone, e.g. 'Asia/Tokyo' or any other time zone automatically.
Here's what I have tried so far.
Convert Asia Manila Time to UTC
const utcDate = DateTime.fromISO('2022-10-16T13:17:05.885+00:00').toUTC().toISO();
Convert UTC Date to Client timezone:
const convertedDate = DateTime.fromISO(utcDate).setZone('Australia/Darwin');
The converted date returns: October 16, 2022, 10:47 PM My desired result is October 16, 2022, 9:17pm or the same time as it is in the 'Asia/Manila'
I am using Luxon and I haven't figured it out yet for months searching for answers