Skip to content

Time Zone Documentation? Just Add Some Comments? #5

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions