Currently, I am developing a React application and facing an issue where the timezone is detected as 'Etc/GMT-1' instead of the desired format 'Africa/Bangui'. This problem seems to be specific to my machine as it persists even when using different browsers.
I have attempted the following methods:
- Using Intl.DateTimeFormat().resolvedOptions().timeZone
- Utilizing dayjs for guessing the timezone
- Using moment.js for time zone detection
All of these methods return the same undesired format: 'Etc/GMT-1'. How can I resolve this issue on my end and also ensure compatibility with other clients who may face the same problem on their systems? Ideally, I want to consistently receive the timezone in the format 'Africa/Bangui'.