Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Use local time zone when issuing a code. #340

Merged
merged 4 commits into from
Aug 26, 2020

Conversation

jeremyfaller
Copy link
Contributor

Rather than requiring the user to use UTC when requesting a code, use
the client's local timezone.

Fixes #63

Proposed Changes

  • Use client's timezone when requesting a code
  • Requires a "reasonably valid" TZ on the client.

Release Note

action required: client timezone should be valid.

@googlebot googlebot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Aug 24, 2020
Rather than requiring the user to use UTC when requesting a code, use
the client's local timezone.

Fixes google#63
Copy link
Member

@sethvargo sethvargo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

pkg/api/api.go Outdated Show resolved Hide resolved
@mikehelmick
Copy link
Contributor

/hold

blocking seth's lgtm, sorry

@mikehelmick
Copy link
Contributor

/unhold

Rather than requiring the user to use UTC when requesting a code, use
the client's local timezone.

Fixes google#63
@mikehelmick
Copy link
Contributor

check presubmit failure

@jeremyfaller jeremyfaller force-pushed the issue_63 branch 2 times, most recently from 23ace77 to 2d90688 Compare August 26, 2020 13:39
@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jeremyfaller, mikehelmick, sethvargo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jeremyfaller,mikehelmick,sethvargo]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 85a4fe8 into google:main Aug 26, 2020
@google google locked and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better handling of test date for different locales
5 participants