I am trying to convert an ISO date to EST, so that the user always sees EST, regardless of the system.
Like so
luxon.DateTime("2023-04-16T03:00:00Z").setZone("EST").toFormat('ttt')
Yet it always comes out like so:
10:00:00 PM GMT-5
I want:
10:00:00 PM EST
What am I doing wrong? I know EST is IANA compliant.
To get the output in the format you desire (e.g., "10:00:00 PM EST"), you can use the
setLocale
method in combination withtoFormat
.