Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to adjust timezone? #89

Open
loikein opened this issue Jun 19, 2023 · 2 comments
Open

Is it possible to adjust timezone? #89

loikein opened this issue Jun 19, 2023 · 2 comments

Comments

@loikein
Copy link

loikein commented Jun 19, 2023

Hi, my location have entered daylight saving time for a while, but I only just noticed that the timestamps are still in winter time (1 hour behind). Is it something that can be adjusted? Thank you very much.

Just tried a few time functions, they all seemed to return the correct time. Screenshot:

image
@mlucool
Copy link
Member

mlucool commented Aug 2, 2023

It should display whatever time your browser thinks it is locally. Did your try closing your browser and reopening?

@loikein
Copy link
Author

loikein commented Aug 2, 2023

@mlucool Thank you very much for your enlightening comment. I did a little bit of research, and think I have found the problem.

Firefox's resistFingerprinting will automatically fix browser timezone to UTC time, and although I'm on beta version with setTZtoUTC=false, it somehow didn't work. I have restarted the browser and my system a few times after the first post, no luck.

Just had a quick look at the source code of this repository. I am not familiar with TypeScript at all, but my intuition is that it is not possible to get system time rather than browser time. Please correct me if I am wrong. In that case, some kind of adjustment option will be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants