authenticator icon indicating copy to clipboard operation
authenticator copied to clipboard

Time Zone Documentation? Just Add Some Comments?

Open ghost opened this issue 11 years ago • 1 comments

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?

ghost avatar May 17 '13 00:05 ghost

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.

etiago avatar Jul 18 '13 11:07 etiago