Skip to content

Authenticator.java does not specify a timezone #5

Description

@dstaas

I was getting failures when running the sample code, which turned out to be an incorrect timezone in the date stamp. Forcing the timezone to UTC in getDate() in Authenticator.java fixes the problem, e.g.

        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
        return formatter.format(new Date());

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions