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

Time Zone Documentation? Just Add Some Comments? #5

Open
ghost opened this issue May 17, 2013 · 1 comment
Open

Time Zone Documentation? Just Add Some Comments? #5

ghost opened this issue May 17, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented May 17, 2013

Hey. It took me several hours of goofing around to figure out the correct timezone offset to use.

I am in Portland, Oregon, which falls in the "PDT" zone.
For my authenticator to work as expected, I needed to use an offset of -7.
This doesn't match up with what documentation I can find online about how UTC works (like http://www.worldtimezone.com/ for example).
Please correct me if I'm wrong, but a simple commented table like this in the source could help:
// US TIME ZONES with DST in Effect
// PDT (GMT-8)=-7
// MDT (GMT-7)=-6
// CDT (GMT-6)=-5
// EDT (GMT-5)=-4

If nothing else, hopefully anyone else having issues with timezone will be able to find my post and maybe save some time?

@etiago
Copy link

etiago commented Jul 18, 2013

Not sure whether it's always been the case but nowadays you can just switch the timezone on runtime and even though the changes are not permanent, you can find out which timezone Google (or whatever other provider) takes in just a matter of seconds.

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

1 participant