I need to display dates in my web application with PST timezone. It should not be dependent of the timezone of the user.
I tried the following code:
const dateTime = DateTime.fromISO('2022-03-22T15:00:00.000Z');
dateTime.setZone("America/Los_Angeles");
console.log(dateTime.toLocaleString(DateTime.DATETIME_FULL));
But anyway, it displays:
March 22, 2022, 4:00 PM GMT+1
How possible to get output in timezone defined?
Thank you