hey, there!
I've been trying to use formatInTimeZone() to convert time to user's timezone and setting 'GMT' as default, in case the user doesn't set a preference, but I'm getting RangeError: Invalid time zone specified: UTC. Already tried "GMT", "Etc/GMT", "Etc/UTC". Also tried some other IANA timezones and couldn't find one that wouldn't throw this same error still.
hey, there! I've been trying to use formatInTimeZone() to convert time to user's timezone and setting 'GMT' as default, in case the user doesn't set a preference, but I'm getting
RangeError: Invalid time zone specified: UTC
. Already tried "GMT", "Etc/GMT", "Etc/UTC". Also tried some other IANA timezones and couldn't find one that wouldn't throw this same error still.return formatInTimeZone(date, timezoneString || 'UTC', 'iii, MMM dd, yyyy, h:mm:ss a O');
Using date-fns-tz@^2.0.0.