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

Timezone aware rules #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robmoorman
Copy link
Collaborator

No description provided.

@kaedroho
Copy link

kaedroho commented May 31, 2017

This doesn't actually solve #130 (but it's a fix worth having anyway). This just makes the datetimes aware of the timezone the server is in but #130 requires datetimes that are aware of the user's timezone which would probably require some JS.

Github seems to solve this by setting a tz cookie with JavaScript.

@tomdyson
Copy link
Collaborator

Something like

document.cookie = "tz-offset="+new Date().getTimezoneOffset()/60;

?

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 this pull request may close these issues.

4 participants