I'm working on React app, I want to detect timezone like this format "Africa/Bangui", but it return it as 'Etc/GMT-1', I know it's my machine problem, since I tried the other browsers.
I tried:
- Intl.DateTimeFormat().resolvedOptions().timeZone;
- dayjs guess
- moment guess
all return the some format: "Etc/GMT-1" How can fix this, and take i consideration other clients that have the problem (in their system) I want always this format "Africa/Bangui"
use moment timezone https://momentjs.com/timezone/docs/