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

tstime: fix ParseDuration for '6' digit #6363

Merged
merged 1 commit into from
Nov 17, 2022
Merged

tstime: fix ParseDuration for '6' digit #6363

merged 1 commit into from
Nov 17, 2022

Conversation

dsnet
Copy link
Member

@dsnet dsnet commented Nov 17, 2022

The cutset provided to strings.TrimRight was missing the digit '6', making it such that we couldn't parse something like "365d".

Signed-off-by: Joe Tsai joetsai@digital-static.net

@dsnet dsnet requested a review from mihaip November 17, 2022 02:23
The cutset provided to strings.TrimRight was missing the digit '6',
making it such that we couldn't parse something like "365d".

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
Copy link
Member

@bradfitz bradfitz left a comment

Choose a reason for hiding this comment

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

Hahah awesome

Copy link
Contributor

@mihaip mihaip left a comment

Choose a reason for hiding this comment

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

LOL, "The Case Of The Missing 6"

@dsnet dsnet merged commit ec1e67b into main Nov 17, 2022
@dsnet dsnet deleted the dsnet/tstime-fix branch November 17, 2022 05:01
coadler pushed a commit to coder/tailscale that referenced this pull request Feb 2, 2023
The cutset provided to strings.TrimRight was missing the digit '6',
making it such that we couldn't parse something like "365d".

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
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

Successfully merging this pull request may close these issues.

3 participants