Format timezone as PST, EST, etc for date-fns

170 Views Asked by At

I'm using date-fns to format my date objects when displaying to the user. I need to display their local timezone but I want it to display timezones as PST, or EST, etc., but all I get are GMT-4, GMT-7, etc.

Right now my format string is:

FORMAT_DATETIME="MMMM d, yyyy HH:mm:ss zzz"

NOTE: I did some reading and found this question but it's been 2 years so I'm not sure if things have changed.

0

There are 0 best solutions below