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

Detect Timezone of user #5

Closed
camjac251 opened this issue Jun 14, 2020 · 1 comment · Fixed by #7
Closed

Detect Timezone of user #5

camjac251 opened this issue Jun 14, 2020 · 1 comment · Fixed by #7

Comments

@camjac251
Copy link

This is a small thing but I can't figure it out myself. I am modifying strftime but notice that by default the timezone is set to UTC in my case.

Would it be possible to set the timezone of the script to the user's IP address through geoip? Or through javascript?
https://stackoverflow.com/questions/39567799/how-do-i-find-user-timezone-in-php
https://momentjs.com/timezone/

@sixem
Copy link
Owner

sixem commented Jun 14, 2020

At the moment the script will use whatever timezone your server has set.

But yeah, i think it should be possible to update this on page load to the timezone of the user, using Javascript. I'll look into it soon.

@sixem sixem mentioned this issue Jun 15, 2020
Merged
@sixem sixem linked a pull request Jun 18, 2020 that will close this issue
Merged
@sixem sixem closed this as completed in #7 Jun 18, 2020
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

Successfully merging a pull request may close this issue.

2 participants